AbstractFilter, RTFReader
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| pack-priv ByteArrayOutputStream | |
| private long | |
| private char[] | |
| private StringBuffer | |
| protected CharsetDecoder | |
| protected ByteBuffer | |
| private CharBuffer | |
| public int | level
The current RTF group nesting level. |
| private int | |
| private String | |
| pack-priv static final char | |
| 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 | |
| protected PrintStream | warnings
A stream to which to write warnings and debugging information while parsing. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public void | |
| private char | |
| 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 | |
| protected void | |
| public void | write(String s)
Overrides javax. 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 ch)
Implements abstract javax. Subclasses must provide an implementation of this method which accepts a single (non-special) character. |
| public void | writeSpecial(int b)
Implements abstract javax. Subclasses must provide an implementation of this method which accepts a single special byte. |
| ba | back to summary |
|---|---|
| private byte[] ba | |
| binaryBuf | back to summary |
|---|---|
| pack-priv ByteArrayOutputStream binaryBuf | |
| binaryBytesLeft | back to summary |
|---|---|
| private long binaryBytesLeft | |
| ca | back to summary |
|---|---|
| private char[] ca | |
| currentCharacters | back to summary |
|---|---|
| private StringBuffer currentCharacters | |
| decoder | back to summary |
|---|---|
| protected CharsetDecoder decoder | |
| decoderBB | back to summary |
|---|---|
| protected ByteBuffer decoderBB | |
| decoderCB | back to summary |
|---|---|
| private CharBuffer decoderCB | |
| 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 | |
| REPLACEMENT_CHAR | back to summary |
|---|---|
| pack-priv static final char REPLACEMENT_CHAR | |
| 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 | |
| warnings | back to summary |
|---|---|
| protected PrintStream warnings A stream to which to write warnings and debugging information
while parsing. This is set to | |
| 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
| |
| decode | back to summary |
|---|---|
| private char decode(char ch) | |
| 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) | |
| warning | back to summary |
|---|---|
| protected void warning(String s) | |
| write | back to summary |
|---|---|
| public void write(String s) throws IOException Overrides javax. Doc from javax. 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 javax. Doc from javax. 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 javax. Doc from javax. Subclasses must provide an implementation of this method which accepts a single special byte. No translation is performed on specials. | |