public final class RtfCtrlWordMgr extends Object
RtfCtrlWordMgr
handles the dispatching of control words from
the table of known control words.Modifier and Type | Field and Description |
---|---|
static boolean |
debug |
static boolean |
debugFound |
static boolean |
debugNotFound |
Constructor and Description |
---|
RtfCtrlWordMgr(RtfParser rtfParser,
PushbackInputStream reader)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addRtfCtrlWordListener(RtfCtrlWordListener listener)
Adds a
RtfCtrlWordListener to the RtfCtrlWordMgr . |
int |
handleKeyword(RtfCtrlWordData ctrlWordData,
int groupLevel)
Internal to control word manager class.
|
void |
removeRtfCtrlWordListener(RtfCtrlWordListener listener)
Removes a
RtfCtrlWordListener from the RtfCtrlWordMgr . |
public static final boolean debug
public static final boolean debugFound
public static final boolean debugNotFound
public RtfCtrlWordMgr(RtfParser rtfParser, PushbackInputStream reader)
rtfParser
- The parser object this manager works with.reader
- the PushbackReader from the tokeniser.public int handleKeyword(RtfCtrlWordData ctrlWordData, int groupLevel)
ctrlWordData
- The RtfCtrlWordData
object with control word and paramgroupLevel
- The current document group parsing levelpublic void addRtfCtrlWordListener(RtfCtrlWordListener listener)
RtfCtrlWordListener
to the RtfCtrlWordMgr
.listener
- the new RtfCtrlWordListener.public void removeRtfCtrlWordListener(RtfCtrlWordListener listener)
RtfCtrlWordListener
from the RtfCtrlWordMgr
.listener
- the RtfCtrlWordListener that has to be removed.Copyright © 2015. All rights reserved.