public class StandardRtfParser extends Object implements IRtfParser, IRtfListener
| Constructor and Description |
|---|
StandardRtfParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
parse(IRtfSource source,
IRtfListener listener)
Main entry point: parse RTF data from the input stream, and pass events based on
the RTF content to the listener.
|
void |
processBinaryBytes(byte[] data)
Handle event from the RawRtfParser.
|
void |
processCharacterBytes(byte[] data)
Handle event from the RawRtfParser.
|
void |
processCommand(Command command,
int parameter,
boolean hasParameter,
boolean optional)
Handle event from the RawRtfParser.
|
void |
processDocumentEnd()
Handle event from the RawRtfParser.
|
void |
processDocumentStart()
Handle event from the RawRtfParser.
|
void |
processGroupEnd()
Handle event from the RawRtfParser.
|
void |
processGroupStart()
Handle event from the RawRtfParser.
|
void |
processString(String string)
Handle event from the RawRtfParser.
|
public void parse(IRtfSource source, IRtfListener listener) throws IOException
parse in interface IRtfParserIOExceptionpublic void processGroupStart()
processGroupStart in interface IRtfListenerpublic void processGroupEnd()
processGroupEnd in interface IRtfListenerpublic void processCharacterBytes(byte[] data)
processCharacterBytes in interface IRtfListenerpublic void processDocumentStart()
processDocumentStart in interface IRtfListenerpublic void processDocumentEnd()
processDocumentEnd in interface IRtfListenerpublic void processBinaryBytes(byte[] data)
processBinaryBytes in interface IRtfListenerpublic void processString(String string)
processString in interface IRtfListenerpublic void processCommand(Command command, int parameter, boolean hasParameter, boolean optional)
processCommand in interface IRtfListenerCopyright © 2013–2018. All rights reserved.