Class RtfCtrlWordMgr
java.lang.Object
com.lowagie.text.rtf.parser.ctrlwords.RtfCtrlWordMgr
RtfCtrlWordMgr handles the dispatching of control words from
the table of known control words.- Since:
- 2.0.8
- Author:
- Howard Shank (hgshank@yahoo.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final booleanstatic final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRtfCtrlWordListener(RtfCtrlWordListener listener) Adds aRtfCtrlWordListenerto theRtfCtrlWordMgr.inthandleKeyword(RtfCtrlWordData ctrlWordData, int groupLevel) Internal to control word manager class.voidremoveRtfCtrlWordListener(RtfCtrlWordListener listener) Removes aRtfCtrlWordListenerfrom theRtfCtrlWordMgr.
-
Field Details
-
debug
public static final boolean debug- See Also:
-
debugFound
public static final boolean debugFound- See Also:
-
debugNotFound
public static final boolean debugNotFound- See Also:
-
-
Constructor Details
-
RtfCtrlWordMgr
Constructor- Parameters:
rtfParser- The parser object this manager works with.reader- the PushbackReader from the tokeniser.
-
-
Method Details
-
handleKeyword
Internal to control word manager class.- Parameters:
ctrlWordData- TheRtfCtrlWordDataobject with control word and paramgroupLevel- The current document group parsing level- Returns:
- errOK if ok, otherwise an error code.
-
addRtfCtrlWordListener
Adds aRtfCtrlWordListenerto theRtfCtrlWordMgr.- Parameters:
listener- the new RtfCtrlWordListener.
-
removeRtfCtrlWordListener
Removes aRtfCtrlWordListenerfrom theRtfCtrlWordMgr.- Parameters:
listener- the RtfCtrlWordListener that has to be removed.
-