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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RtfCtrlWordMapstatic final booleanstatic final booleanstatic final booleanprivate final List<RtfCtrlWordListener>TheRtfCtrlWordListener.private final PushbackInputStreamprivate final RtfParser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRtfCtrlWordListener(RtfCtrlWordListener listener) Adds aRtfCtrlWordListenerto theRtfCtrlWordMgr.private booleanafterCtrlWord(RtfCtrlWordData ctrlWordData) private booleanbeforeCtrlWord(RtfCtrlWordData ctrlWordData) private intdispatchKeyword(RtfCtrlWordData ctrlWordData, int groupLevel) Dispatch the token to the correct control word handling object.inthandleKeyword(RtfCtrlWordData ctrlWordData, int groupLevel) Internal to control word manager class.private booleanonCtrlWord(RtfCtrlWordData ctrlWordData) 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:
-
reader
-
rtfParser
-
ctrlWordMap
-
listeners
TheRtfCtrlWordListener.
-
-
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.
-
dispatchKeyword
Dispatch the token to the correct control word handling object.- 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.
-
beforeCtrlWord
-
onCtrlWord
-
afterCtrlWord
-