com.lowagie.text.rtf.parser.ctrlwords
public final class RtfCtrlWordMgr extends Object
RtfCtrlWordMgr handles the dispatching of control words from
the table of known control words.
Since: 2.0.8
| Field Summary | |
|---|---|
| RtfCtrlWordMap | ctrlWordMap |
| static boolean | debug |
| static boolean | debugFound |
| static boolean | debugNotFound |
| ArrayList | listeners The RtfCtrlWordListener. |
| PushbackInputStream | reader |
| RtfParser | rtfParser |
| Constructor Summary | |
|---|---|
| RtfCtrlWordMgr(RtfParser rtfParser, PushbackInputStream reader)
Constructor | |
| Method Summary | |
|---|---|
| void | addRtfCtrlWordListener(RtfCtrlWordListener listener)
Adds a RtfCtrlWordListener to the RtfCtrlWordMgr.
|
| boolean | afterCtrlWord(RtfCtrlWordData ctrlWordData) |
| boolean | beforeCtrlWord(RtfCtrlWordData ctrlWordData) |
| int | dispatchKeyword(RtfCtrlWordData ctrlWordData, int groupLevel)
Dispatch the token to the correct control word handling object.
|
| int | handleKeyword(RtfCtrlWordData ctrlWordData, int groupLevel)
Internal to control word manager class.
|
| boolean | onCtrlWord(RtfCtrlWordData ctrlWordData) |
| void | removeRtfCtrlWordListener(RtfCtrlWordListener listener)
Removes a RtfCtrlWordListener from the RtfCtrlWordMgr.
|
RtfCtrlWordListener.Parameters: rtfParser The parser object this manager works with. reader the PushbackReader from the tokeniser.
RtfCtrlWordListener to the RtfCtrlWordMgr.
Parameters: listener the new RtfCtrlWordListener.
Parameters: ctrlWordData The RtfCtrlWordData object with control word and param groupLevel The current document group parsing level
Returns: errOK if ok, otherwise an error code.
Parameters: ctrlWordData The RtfCtrlWordData object with control word and param groupLevel The current document group parsing level
Returns: errOK if ok, otherwise an error code.
RtfCtrlWordListener from the RtfCtrlWordMgr.
Parameters: listener the RtfCtrlWordListener that has to be removed.