public final class RtfDestinationNull extends RtfDestination
RtfDestinationNull is for discarded entries. They go nowhere.
If a control word destination is unknown or ignored, this is the destination
that should be set.
All methods return true indicating they were handled.
This is a unique destination in that it is a singleton.lastCtrlWord, modified, rtfParser| Modifier and Type | Method and Description |
|---|---|
boolean |
closeDestination()
Clean up when destination is closed.
|
static RtfDestinationNull |
getInstance()
Get the singleton instance of RtfDestinationNull object.
|
static String |
getName() |
int |
getNewTokeniserState() |
boolean |
handleCloseGroup()
Clean up when group is closed.
|
boolean |
handleControlWord(RtfCtrlWordData ctrlWordData)
Handle control word for this destination
|
boolean |
handleCharacter(int ch)
Handle text for this destination
|
boolean |
handleOpenGroup()
Setup when group is opened.
|
boolean |
handleOpeningSubGroup()
Handle a new subgroup contained within this group
|
void |
setToDefaults()
Method to set this object to the default values.
|
addListener, afterCtrlWord, afterCharacter, beforeCtrlWord, beforeCharacter, isModified, onCloseGroup, onCtrlWord, onCharacter, onOpenGroup, removeListener, setParserpublic static RtfDestinationNull getInstance()
public boolean handleOpeningSubGroup()
RtfDestinationhandleOpeningSubGroup in class RtfDestinationpublic void setToDefaults()
RtfDestinationsetToDefaults in class RtfDestinationpublic boolean closeDestination()
RtfDestinationcloseDestination in class RtfDestinationpublic boolean handleCloseGroup()
RtfDestinationhandleCloseGroup in class RtfDestinationpublic boolean handleOpenGroup()
RtfDestinationhandleOpenGroup in class RtfDestinationpublic boolean handleCharacter(int ch)
RtfDestinationhandleCharacter in class RtfDestinationpublic boolean handleControlWord(RtfCtrlWordData ctrlWordData)
RtfDestinationhandleControlWord in class RtfDestinationctrlWordData - The control word and parameter information objectpublic static String getName()
public int getNewTokeniserState()
getNewTokeniserState in class RtfDestinationCopyright © 2015. All rights reserved.