| java.lang.Object com.lowagie.text.rtf.direct.RtfTokeniser
RtfTokeniser | public class RtfTokeniser (Code) | | The RtfTokeniser takes an RTF document stream and
turns it into a set of RTF tokens. Five groups of
tokens are differentiated:
- Group opening: {
- Group closing: }
- Control characters
- Control words
- Text
version: $Revision: 2429 $ author: Mark Hall (mhall@edu.uni-klu.ac.at) author: Bullo (bullo70@users.sourceforge.net) |
Constructor Summary | |
public | RtfTokeniser(RtfParser rtfParser, int startGroupLevel) Constructs a new RtfTokeniser. |
Method Summary | |
public void | tokenise(Reader reader) The main tokenisation method. |
RtfTokeniser | public RtfTokeniser(RtfParser rtfParser, int startGroupLevel)(Code) | | Constructs a new RtfTokeniser. The startGroupLevel is required when parsing
RTF fragments, since they are missing the opening group and closing group
and thus this has to be set at the beginning.
Parameters: rtfParser - The RtfParser to send tokens to. Parameters: startGroupLevel - The starting group nesting level. 0 for full documents, 1 for fragments. |
tokenise | public void tokenise(Reader reader) throws IOException(Code) | | The main tokenisation method. Implements a LL(1) parser.
Parameters: reader - The Reader to read the RTF document from. throws: IOException - On I/O errors. |
|
|