Class RtfDestinationMgr
java.lang.Object
com.lowagie.text.rtf.parser.destinations.RtfDestinationMgr
RtfDestinationMgr manages destination objects for the parser- Since:
- 2.0.8
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringString representation of document destination.static final StringString representation of null destination.private static final Map<String, RtfDestination> Destination objects.private static final Map<String, RtfDestination> CtrlWord invalid input: '<'-> Destination map object.private static booleanprivate static RtfDestinationMgrprivate static final Objectprivate static RtfParser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddDestination(String destination, Object[] args) static booleanaddListener(String destination, RtfDestinationListener listener) Adds aRtfDestinationListenerto the appropriateRtfDestination.static RtfDestinationgetDestination(String destination) static RtfDestinationMgrstatic RtfDestinationMgrgetInstance(RtfParser parser) static booleanremoveListener(String destination, RtfDestinationListener listener) Removes aRtfDestinationListenerfrom the appropriateRtfDestination.static void
-
Field Details
-
instance
-
lock
-
destinations
CtrlWord invalid input: '<'-> Destination map object. Maps control words to their destinations objects. Null destination is a special destination used for discarding unwanted data. This is primarily used when skipping groups, binary data or unwanted/unknown data. -
destinationObjects
Destination objects. There is only one of each destination. -
ignoreUnknownDestinations
private static boolean ignoreUnknownDestinations -
rtfParser
-
DESTINATION_NULL
-
DESTINATION_DOCUMENT
String representation of document destination.- See Also:
-
-
Constructor Details
-
RtfDestinationMgr
private RtfDestinationMgr()Hidden default constructor becuase
-
-
Method Details
-
setParser
-
getInstance
-
getInstance
-
getDestination
-
addDestination
-
addListener
Adds aRtfDestinationListenerto the appropriateRtfDestination.- Parameters:
destination- the destination string for the listenerlistener- the new RtfDestinationListener.
-
removeListener
Removes aRtfDestinationListenerfrom the appropriateRtfDestination.- Parameters:
destination- the destination string for the listenerlistener- the RtfCtrlWordListener that has to be removed.
-