AbstractFilter, RTFReader
| Modifier and Type | Field and Description |
|---|---|
| pack-priv ByteArrayOutputStream | |
| private long | |
| private StringBuffer | |
| public int | level
The current RTF group nesting level. |
| private int | |
| private String | |
| pack-priv static final boolean[] | |
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| private boolean[] | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public void | |
| public abstract void | |
| public void | flush()
Overrides java. Implements java. Flushes any buffered but not yet written characters. |
| public abstract void | |
| public abstract boolean | |
| public abstract boolean | handleKeyword(String
The keyword, as with keyword, int handleKeyword(String).The parameter following the keyword. parameter)Implemented by subclasses to interpret a keyword with a parameter. |
| public abstract void | |
| public void | |
| public void | write(String
The string of non-special characters written to the
OutputStream. s)Overrides com. Hopefully, all subclasses will override this method to accept strings
of text, but if they don't, AbstractFilter's implementation
will spoon-feed them via |
| public void | write(char
The character written to the OutputStream. ch)Implements abstract com. Subclasses must provide an implementation of this method which accepts a single (non-special) character. |
| public void | writeSpecial(int
The byte written to the OutputStream. b)Implements abstract com. Subclasses must provide an implementation of this method which accepts a single special byte. |
| binaryBuf | back to summary |
|---|---|
| pack-priv ByteArrayOutputStream binaryBuf | |
| binaryBytesLeft | back to summary |
|---|---|
| private long binaryBytesLeft | |
| currentCharacters | back to summary |
|---|---|
| private StringBuffer currentCharacters | |
| level | back to summary |
|---|---|
| public int level The current RTF group nesting level. | |
| pendingCharacter | back to summary |
|---|---|
| private int pendingCharacter | |
| pendingKeyword | back to summary |
|---|---|
| private String pendingKeyword | |
| rtfSpecialsTable | back to summary |
|---|---|
| pack-priv static final boolean[] rtfSpecialsTable | |
| S_aftertick | back to summary |
|---|---|
| private final int S_aftertick | |
| S_aftertickc | back to summary |
|---|---|
| private final int S_aftertickc | |
| S_backslashed | back to summary |
|---|---|
| private final int S_backslashed | |
| S_inblob | back to summary |
|---|---|
| private final int S_inblob | |
| S_parameter | back to summary |
|---|---|
| private final int S_parameter | |
| S_text | back to summary |
|---|---|
| private final int S_text | |
| S_token | back to summary |
|---|---|
| private final int S_token | |
| savedSpecials | back to summary |
|---|---|
| private boolean[] savedSpecials | |
| state | back to summary |
|---|---|
| private int state | |
| RTFParser | back to summary |
|---|---|
| public RTFParser() | |
| begingroup | back to summary |
|---|---|
| public abstract void begingroup() Implemented by subclasses to react to an increase in the nesting level. | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Closes the parser. Currently, this simply does a
| |
| endgroup | back to summary |
|---|---|
| public abstract void endgroup() Implemented by subclasses to react to the end of a group. | |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Flushes any buffered but not yet written characters. Subclasses which override this method should call this method before flushing any of their own buffers.
| |
| handleBinaryBlob | back to summary |
|---|---|
| public abstract void handleBinaryBlob(byte[] data) Implemented by subclasses to handle the contents of the \bin keyword. | |
| handleKeyword | back to summary |
|---|---|
| public abstract boolean handleKeyword(String keyword) Implemented by subclasses to interpret a parameter-less RTF keyword. The keyword is passed without the leading '/' or any delimiting whitespace. | |
| handleKeyword | back to summary |
|---|---|
| public abstract boolean handleKeyword(String keyword, int parameter) Implemented by subclasses to interpret a keyword with a parameter.
| |
| handleText | back to summary |
|---|---|
| public abstract void handleText(String text) Implemented by subclasses to interpret text from the RTF stream. | |
| handleText | back to summary |
|---|---|
| public void handleText(char ch) | |
| write | back to summary |
|---|---|
| public void write(String s) throws IOException Overrides com. Doc from com. Hopefully, all subclasses will override this method to accept strings
of text, but if they don't, AbstractFilter's implementation
will spoon-feed them via | |
| write | back to summary |
|---|---|
| public void write(char ch) throws IOException Implements abstract com. Doc from com. Subclasses must provide an implementation of this method which accepts a single (non-special) character.
| |
| writeSpecial | back to summary |
|---|---|
| public void writeSpecial(int b) throws IOException Implements abstract com. Doc from com. Subclasses must provide an implementation of this method which accepts a single special byte. No translation is performed on specials.
| |