Class RtfDestinationMgr

java.lang.Object
com.lowagie.text.rtf.parser.destinations.RtfDestinationMgr

public final class RtfDestinationMgr extends Object
RtfDestinationMgr manages destination objects for the parser
Since:
2.0.8
Author:
Howard Shank (hgshank@yahoo.com)
  • Field Details

    • DESTINATION_NULL

      public static final String DESTINATION_NULL
      String representation of null destination.
      See Also:
    • DESTINATION_DOCUMENT

      public static final String DESTINATION_DOCUMENT
      String representation of document destination.
      See Also:
  • Method Details

    • setParser

      public static void setParser(RtfParser parser)
    • getInstance

      public static RtfDestinationMgr getInstance()
    • getInstance

      public static RtfDestinationMgr getInstance(RtfParser parser)
    • getDestination

      public static RtfDestination getDestination(String destination)
    • addDestination

      public static boolean addDestination(String destination, Object[] args)
    • addListener

      public static boolean addListener(String destination, RtfDestinationListener listener)
      Adds a RtfDestinationListener to the appropriate RtfDestination.
      Parameters:
      destination - the destination string for the listener
      listener - the new RtfDestinationListener.
    • removeListener

      public static boolean removeListener(String destination, RtfDestinationListener listener)
      Removes a RtfDestinationListener from the appropriate RtfDestination.
      Parameters:
      destination - the destination string for the listener
      listener - the RtfCtrlWordListener that has to be removed.