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 String
String representation of document destination.static final String
String 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 boolean
private static RtfDestinationMgr
private static final Object
private static RtfParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
addDestination
(String destination, Object[] args) static boolean
addListener
(String destination, RtfDestinationListener listener) Adds aRtfDestinationListener
to the appropriateRtfDestination
.static RtfDestination
getDestination
(String destination) static RtfDestinationMgr
static RtfDestinationMgr
getInstance
(RtfParser parser) static boolean
removeListener
(String destination, RtfDestinationListener listener) Removes aRtfDestinationListener
from 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
String representation of null destination.- See Also:
-
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 aRtfDestinationListener
to the appropriateRtfDestination
.- Parameters:
destination
- the destination string for the listenerlistener
- the new RtfDestinationListener.
-
removeListener
Removes aRtfDestinationListener
from the appropriateRtfDestination
.- Parameters:
destination
- the destination string for the listenerlistener
- the RtfCtrlWordListener that has to be removed.
-