Package com.lowagie.text.rtf.parser
Class RtfParserState
java.lang.Object
com.lowagie.text.rtf.parser.RtfParserState
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe current control word handler.final ArrayDeque
<Object> Stack containing control word handlers.The current destination.The control word set as the group handler.boolean
Flag indicating if this is an extended destination \* control wordboolean
Flag to indicate if last token was an open group token '{'int
The parser state.final RtfProperty
final StringBuilder
The parsed value for the current group/control word.int
The tokeniser state. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
parserState
public int parserStateThe parser state. -
tokeniserState
public int tokeniserStateThe tokeniser state. -
groupHandler
The control word set as the group handler. -
text
The parsed value for the current group/control word. -
ctrlWordHandlers
Stack containing control word handlers. There could be multiple control words in a group. -
ctrlWordHandler
The current control word handler. -
destination
The current destination. -
isExtendedDestination
public boolean isExtendedDestinationFlag indicating if this is an extended destination \* control word -
newGroup
public boolean newGroupFlag to indicate if last token was an open group token '{' -
properties
-
-
Constructor Details
-
RtfParserState
public RtfParserState()Default constructor -
RtfParserState
Copy constructor- Parameters:
orig
- The object to copy
-