Package com.aowagie.text.pdf
Class SimpleNamedDestination
java.lang.Object
com.aowagie.text.pdf.SimpleNamedDestination
- All Implemented Interfaces:
SimpleXMLDocHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static PdfArray
createDestinationArray
(String value, PdfWriter writer) void
Called after the document is parsed.void
endElement
(String tag) Called when an end tag is found.(package private) static String
private static void
exportToXML
(HashMap names, Writer wrt, String encoding, boolean onlyASCII) Exports the destinations to XML.void
Called when the document starts to be parsed.void
startElement
(String tag, HashMap h) Called when a start tag is found.void
Called when a text element is found.(package private) static String
-
Field Details
-
xmlNames
-
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 nameswrt
- the export destination. The writer is not closedencoding
- the encoding according to IANA conventionsonlyASCII
- codes above 127 will always be escaped with &#nn; iftrue
, whatever the encoding- Throws:
IOException
- on error
-
createDestinationArray
-
escapeBinaryString
-
unEscapeBinaryString
-
endDocument
public void endDocument()Description copied from interface:SimpleXMLDocHandler
Called after the document is parsed.- Specified by:
endDocument
in interfaceSimpleXMLDocHandler
-
endElement
Description copied from interface:SimpleXMLDocHandler
Called when an end tag is found.- Specified by:
endElement
in interfaceSimpleXMLDocHandler
- 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 interfaceSimpleXMLDocHandler
-
startElement
Description copied from interface:SimpleXMLDocHandler
Called when a start tag is found.- Specified by:
startElement
in interfaceSimpleXMLDocHandler
- Parameters:
tag
- the tag nameh
- the tag's attributes
-
text
Description copied from interface:SimpleXMLDocHandler
Called when a text element is found.- Specified by:
text
in interfaceSimpleXMLDocHandler
- Parameters:
str
- the text element, probably a fragment.
-