com.lowagie.text.rtf.direct
public class RtfTokeniser extends Object
Version: $Revision: 1.7 $
Field Summary | |
---|---|
int | groupLevel
The current group nesting level. |
RtfParser | rtfParser
The RtfParser to send tokens to. |
int | state
The current state of this RtfTokeniser. |
static int | TOKENISER_STATE_IN_CTRL_WORD
The RtfTokeniser is currently tokenising a control word. |
static int | TOKENISER_STATE_IN_TEXT
The RtfTokeniser is currently tokenising a text. |
static int | TOKENISER_STATE_READY
The RtfTokeniser is in its ground state. |
static int | TOKENISER_STATE_SLASH
The last token parsed was a slash. |
Constructor Summary | |
---|---|
RtfTokeniser(RtfParser rtfParser, int startGroupLevel)
Constructs a new RtfTokeniser. |
Method Summary | |
---|---|
void | tokenise(Reader reader)
The main tokenisation method. |
Parameters: rtfParser The RtfParser to send tokens to. startGroupLevel The starting group nesting level. 0 for full documents, 1 for fragments.
Parameters: reader The Reader to read the RTF document from.
Throws: IOException On I/O errors.