com.lowagie.text.rtf.parser.destinations

Class RtfDestinationNull

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.

Since: 2.0.8

Author: Howard Shank (hgshank@yahoo.com)

Field Summary
static RtfDestinationNullinstance
static Objectlock
Constructor Summary
RtfDestinationNull()
Constructs a new RtfDestinationNull.
RtfDestinationNull(RtfParser parser)
Constructs a new RtfDestinationNull.
Method Summary
booleancloseDestination()
static RtfDestinationNullgetInstance()
Get the singleton instance of RtfDestinationNull object.
static StringgetName()
intgetNewTokeniserState()
booleanhandleCharacter(int ch)
booleanhandleCloseGroup()
booleanhandleControlWord(RtfCtrlWordData ctrlWordData)
booleanhandleOpenGroup()
booleanhandleOpeningSubGroup()
voidsetToDefaults()

Field Detail

instance

private static RtfDestinationNull instance

lock

private static Object lock

Constructor Detail

RtfDestinationNull

private RtfDestinationNull()
Constructs a new RtfDestinationNull. This constructor is hidden for internal use only.

RtfDestinationNull

private RtfDestinationNull(RtfParser parser)
Constructs a new RtfDestinationNull. This constructor is hidden for internal use only.

Parameters: parser Unused value

Method Detail

closeDestination

public boolean closeDestination()

getInstance

public static RtfDestinationNull getInstance()
Get the singleton instance of RtfDestinationNull object.

getName

public static String getName()

getNewTokeniserState

public int getNewTokeniserState()

handleCharacter

public boolean handleCharacter(int ch)

handleCloseGroup

public boolean handleCloseGroup()

handleControlWord

public boolean handleControlWord(RtfCtrlWordData ctrlWordData)

handleOpenGroup

public boolean handleOpenGroup()

handleOpeningSubGroup

public boolean handleOpeningSubGroup()

setToDefaults

public void setToDefaults()