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 RtfCtrlWordMap
static final boolean
static final boolean
static final boolean
private final List
<RtfCtrlWordListener> TheRtfCtrlWordListener
.private final PushbackInputStream
private final RtfParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRtfCtrlWordListener
(RtfCtrlWordListener listener) Adds aRtfCtrlWordListener
to theRtfCtrlWordMgr
.private boolean
afterCtrlWord
(RtfCtrlWordData ctrlWordData) private boolean
beforeCtrlWord
(RtfCtrlWordData ctrlWordData) private 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.private boolean
onCtrlWord
(RtfCtrlWordData ctrlWordData) void
removeRtfCtrlWordListener
(RtfCtrlWordListener listener) Removes aRtfCtrlWordListener
from 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
- TheRtfCtrlWordData
object 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
- TheRtfCtrlWordData
object with control word and paramgroupLevel
- The current document group parsing level- Returns:
- errOK if ok, otherwise an error code.
-
addRtfCtrlWordListener
Adds aRtfCtrlWordListener
to theRtfCtrlWordMgr
.- Parameters:
listener
- the new RtfCtrlWordListener.
-
removeRtfCtrlWordListener
Removes aRtfCtrlWordListener
from theRtfCtrlWordMgr
.- Parameters:
listener
- the RtfCtrlWordListener that has to be removed.
-
beforeCtrlWord
-
onCtrlWord
-
afterCtrlWord
-