public class RTFReader extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cellread |
static boolean |
DEBUG |
protected boolean |
isTable |
protected RTFDocument |
mainDocument |
| Modifier and Type | Method and Description |
|---|---|
protected int |
convertTwipsToPixels(int value) |
protected int |
getWidthFromPosition(Vector cellAttributes,
int col) |
protected void |
insertImage(String content,
RTFDocument document) |
protected void |
processImage(RTFElement pictureGroup,
RTFDocument document) |
void |
read(Reader in,
int offset) |
void |
read(String fileName,
int offset) |
protected void |
removeCharacterAttributes(MutableAttributeSet attrs) |
public static boolean DEBUG
protected RTFDocument mainDocument
protected boolean isTable
protected boolean cellread
public RTFReader(Document doc)
public void read(String fileName, int offset) throws IOException, BadLocationException
IOExceptionBadLocationExceptionpublic void read(Reader in, int offset) throws IOException, BadLocationException
IOExceptionBadLocationExceptionprotected int getWidthFromPosition(Vector cellAttributes, int col)
protected int convertTwipsToPixels(int value)
protected void processImage(RTFElement pictureGroup, RTFDocument document) throws IOException, BadLocationException
IOExceptionBadLocationExceptionprotected void insertImage(String content, RTFDocument document) throws IOException, BadLocationException
IOExceptionBadLocationExceptionprotected void removeCharacterAttributes(MutableAttributeSet attrs)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.