Class SimpleNamedDestination

java.lang.Object
com.aowagie.text.pdf.SimpleNamedDestination
All Implemented Interfaces:
SimpleXMLDocHandler

final class SimpleNamedDestination extends Object implements SimpleXMLDocHandler
  • Field Details

    • xmlNames

      private HashMap xmlNames
    • xmlLast

      private HashMap xmlLast
  • Constructor Details

    • SimpleNamedDestination

      private SimpleNamedDestination()
  • Method Details

    • exportToXML

      private static void exportToXML(HashMap names, Writer wrt, String encoding, boolean onlyASCII) throws IOException
      Exports the destinations to XML.
      Parameters:
      names - the names
      wrt - the export destination. The writer is not closed
      encoding - the encoding according to IANA conventions
      onlyASCII - codes above 127 will always be escaped with &#nn; if true, whatever the encoding
      Throws:
      IOException - on error
    • createDestinationArray

      private static PdfArray createDestinationArray(String value, PdfWriter writer)
    • escapeBinaryString

      static String escapeBinaryString(String s)
    • unEscapeBinaryString

      static String unEscapeBinaryString(String s)
    • endDocument

      public void endDocument()
      Description copied from interface: SimpleXMLDocHandler
      Called after the document is parsed.
      Specified by:
      endDocument in interface SimpleXMLDocHandler
    • endElement

      public void endElement(String tag)
      Description copied from interface: SimpleXMLDocHandler
      Called when an end tag is found.
      Specified by:
      endElement in interface SimpleXMLDocHandler
      Parameters:
      tag - the tag name
    • startDocument

      public void startDocument()
      Description copied from interface: SimpleXMLDocHandler
      Called when the document starts to be parsed.
      Specified by:
      startDocument in interface SimpleXMLDocHandler
    • startElement

      public void startElement(String tag, HashMap h)
      Description copied from interface: SimpleXMLDocHandler
      Called when a start tag is found.
      Specified by:
      startElement in interface SimpleXMLDocHandler
      Parameters:
      tag - the tag name
      h - the tag's attributes
    • text

      public void text(String str)
      Description copied from interface: SimpleXMLDocHandler
      Called when a text element is found.
      Specified by:
      text in interface SimpleXMLDocHandler
      Parameters:
      str - the text element, probably a fragment.