com.lowagie.text.rtf.parser.destinations
public final class RtfDestinationMgr extends Object
RtfDestinationMgr
manages destination objects for the parserModifier and Type | Field and Description |
---|---|
static String |
DESTINATION_DOCUMENT
String representation of document destination.
|
static String |
DESTINATION_NULL
String representation of null destination.
|
private static HashMap |
destinationObjects
Destination objects.
|
private static HashMap |
destinations
CtrlWord <-> Destination map object.
|
private static boolean |
ignoreUnknownDestinations |
private static RtfDestinationMgr |
instance |
private static Object |
lock |
private static RtfParser |
rtfParser |
Modifier | Constructor and Description |
---|---|
private |
RtfDestinationMgr()
Hidden default constructor becuase
|
Modifier and Type | Method and Description |
---|---|
static boolean |
addDestination(String destination,
Object[] args) |
static boolean |
addListener(String destination,
RtfDestinationListener listener)
Adds a
RtfDestinationListener to the appropriate RtfDestination . |
static RtfDestination |
getDestination(String destination) |
static RtfDestinationMgr |
getInstance() |
static RtfDestinationMgr |
getInstance(RtfParser parser) |
static boolean |
removeListener(String destination,
RtfDestinationListener listener)
Removes a
RtfDestinationListener from the appropriate RtfDestination . |
static void |
setParser(RtfParser parser) |
private static RtfDestinationMgr instance
private static Object lock
private static HashMap destinations
private static HashMap destinationObjects
private static boolean ignoreUnknownDestinations
private static RtfParser rtfParser
public static final String DESTINATION_NULL
public static final String DESTINATION_DOCUMENT
public static void setParser(RtfParser parser)
public static RtfDestinationMgr getInstance()
public static RtfDestinationMgr getInstance(RtfParser parser)
public static RtfDestination getDestination(String destination)
public static boolean addListener(String destination, RtfDestinationListener listener)
RtfDestinationListener
to the appropriate RtfDestination
.destination
- the destination string for the listenerlistener
- the new RtfDestinationListener.public static boolean removeListener(String destination, RtfDestinationListener listener)
RtfDestinationListener
from the appropriate RtfDestination
.destination
- the destination string for the listenerlistener
- the RtfCtrlWordListener that has to be removed.