| 
 |   | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.text.rtf.parser.ctrlwords.RtfCtrlWordMgr
public final class RtfCtrlWordMgr
RtfCtrlWordMgr handles the dispatching of control words from
 the table of known control words.
| Field Summary | |
|---|---|
| private  RtfCtrlWordMap | ctrlWordMap | 
| static boolean | debug | 
| static boolean | debugFound | 
| static boolean | debugNotFound | 
| private  ArrayList | listenersThe RtfCtrlWordListener. | 
| private  PushbackInputStream | reader | 
| private  RtfParser | rtfParser | 
| Constructor Summary | |
|---|---|
| RtfCtrlWordMgr(RtfParser rtfParser,
               PushbackInputStream reader)Constructor | |
| Method Summary | |
|---|---|
|  void | addRtfCtrlWordListener(RtfCtrlWordListener listener)Adds a RtfCtrlWordListenerto 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 a RtfCtrlWordListenerfrom theRtfCtrlWordMgr. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final boolean debug
public static final boolean debugFound
public static final boolean debugNotFound
private PushbackInputStream reader
private RtfParser rtfParser
private RtfCtrlWordMap ctrlWordMap
private ArrayList listeners
RtfCtrlWordListener.
| Constructor Detail | 
|---|
public RtfCtrlWordMgr(RtfParser rtfParser,
                      PushbackInputStream reader)
rtfParser - The parser object this manager works with.reader - the PushbackReader from the tokeniser.| Method Detail | 
|---|
public int handleKeyword(RtfCtrlWordData ctrlWordData,
                         int groupLevel)
ctrlWordData - The RtfCtrlWordData object with control word and paramgroupLevel - The current document group parsing level
private int dispatchKeyword(RtfCtrlWordData ctrlWordData,
                            int groupLevel)
ctrlWordData - The RtfCtrlWordData object with control word and paramgroupLevel - The current document group parsing level
public 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.private boolean beforeCtrlWord(RtfCtrlWordData ctrlWordData)
private boolean onCtrlWord(RtfCtrlWordData ctrlWordData)
private boolean afterCtrlWord(RtfCtrlWordData ctrlWordData)
| 
 | Hosted by Hostbasket | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||