public class RtfDumpListener extends Object implements IRtfListener
| Constructor and Description |
|---|
RtfDumpListener(OutputStream stream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
processBinaryBytes(byte[] data)
Write binary data as hex.
|
void |
processCharacterBytes(byte[] data)
Write character bytes - note that we cheat, we just convert them
directly to a string for output with no regard to the encoding.
|
void |
processCommand(Command command,
int parameter,
boolean hasParameter,
boolean optional)
Write a command tag.
|
void |
processDocumentEnd()
Create the document trailer.
|
void |
processDocumentStart()
Create the document header.
|
void |
processGroupEnd()
Write a group end tag.
|
void |
processGroupStart()
Write a group start tag.
|
void |
processString(String string)
Write string data.
|
public RtfDumpListener(OutputStream stream) throws XMLStreamException
XMLStreamExceptionpublic void processDocumentStart()
processDocumentStart in interface IRtfListenerpublic void processDocumentEnd()
processDocumentEnd in interface IRtfListenerpublic void processCharacterBytes(byte[] data)
processCharacterBytes in interface IRtfListenerpublic void processBinaryBytes(byte[] data)
processBinaryBytes in interface IRtfListenerpublic void processGroupStart()
processGroupStart in interface IRtfListenerpublic void processGroupEnd()
processGroupEnd in interface IRtfListenerpublic void processCommand(Command command, int parameter, boolean hasParameter, boolean optional)
processCommand in interface IRtfListenerpublic void processString(String string)
processString in interface IRtfListenerCopyright © 2013–2018. All rights reserved.