com.lowagie.text.rtf.parser

Class RtfParserState

public class RtfParserState extends Object

The RtfParserState contains the state information for the parser. The current state object is pushed/popped in a stack when a group change is made. When an open group is encountered, the current state is copied and then pushed on the top of the stack When a close group is encountered, the current state is overwritten with the popped value from the top of the stack

Since: 2.0.8

Author: Howard Shank (hgshank@yahoo.com)

Field Summary
ObjectctrlWordHandler
The current control word handler.
StackctrlWordHandlers
Stack containing control word handlers.
RtfDestinationdestination
The current destination.
ObjectgroupHandler
The control word set as the group handler.
booleanisExtendedDestination
Flag indicating if this is an extended destination \* control word
booleannewGroup
Flag to indicate if last token was an open group token '{'
intparserState
The parser state.
RtfPropertyproperties
StringBuffertext
The parsed value for the current group/control word.
inttokeniserState
The tokeniser state.
Constructor Summary
RtfParserState()
Default constructor
RtfParserState(RtfParserState orig)
Copy constructor

Field Detail

ctrlWordHandler

public Object ctrlWordHandler
The current control word handler.

ctrlWordHandlers

public Stack ctrlWordHandlers
Stack containing control word handlers. There could be multiple control words in a group.

destination

public RtfDestination destination
The current destination.

groupHandler

public Object groupHandler
The control word set as the group handler.

isExtendedDestination

public boolean isExtendedDestination
Flag indicating if this is an extended destination \* control word

newGroup

public boolean newGroup
Flag to indicate if last token was an open group token '{'

parserState

public int parserState
The parser state.

properties

public RtfProperty properties

text

public StringBuffer text
The parsed value for the current group/control word.

tokeniserState

public int tokeniserState
The tokeniser state.

Constructor Detail

RtfParserState

public RtfParserState()
Default constructor

RtfParserState

public RtfParserState(RtfParserState orig)
Copy constructor

Parameters: orig The object to copy