Package com.aowagie.text.pdf
Class SimpleNamedDestination
- java.lang.Object
-
- com.aowagie.text.pdf.SimpleNamedDestination
-
- All Implemented Interfaces:
SimpleXMLDocHandler
final class SimpleNamedDestination extends java.lang.Object implements SimpleXMLDocHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description privateSimpleNamedDestination()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static PdfArraycreateDestinationArray(java.lang.String value, PdfWriter writer)voidendDocument()Called after the document is parsed.voidendElement(java.lang.String tag)Called when an end tag is found.(package private) static java.lang.StringescapeBinaryString(java.lang.String s)private static voidexportToXML(java.util.HashMap names, java.io.Writer wrt, java.lang.String encoding, boolean onlyASCII)Exports the destinations to XML.voidstartDocument()Called when the document starts to be parsed.voidstartElement(java.lang.String tag, java.util.HashMap h)Called when a start tag is found.voidtext(java.lang.String str)Called when a text element is found.(package private) static java.lang.StringunEscapeBinaryString(java.lang.String s)
-
-
-
Method Detail
-
exportToXML
private static void exportToXML(java.util.HashMap names, java.io.Writer wrt, java.lang.String encoding, boolean onlyASCII) throws java.io.IOExceptionExports 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:
java.io.IOException- on error
-
createDestinationArray
private static PdfArray createDestinationArray(java.lang.String value, PdfWriter writer)
-
escapeBinaryString
static java.lang.String escapeBinaryString(java.lang.String s)
-
unEscapeBinaryString
static java.lang.String unEscapeBinaryString(java.lang.String s)
-
endDocument
public void endDocument()
Description copied from interface:SimpleXMLDocHandlerCalled after the document is parsed.- Specified by:
endDocumentin interfaceSimpleXMLDocHandler
-
endElement
public void endElement(java.lang.String tag)
Description copied from interface:SimpleXMLDocHandlerCalled when an end tag is found.- Specified by:
endElementin interfaceSimpleXMLDocHandler- Parameters:
tag- the tag name
-
startDocument
public void startDocument()
Description copied from interface:SimpleXMLDocHandlerCalled when the document starts to be parsed.- Specified by:
startDocumentin interfaceSimpleXMLDocHandler
-
startElement
public void startElement(java.lang.String tag, java.util.HashMap h)Description copied from interface:SimpleXMLDocHandlerCalled when a start tag is found.- Specified by:
startElementin interfaceSimpleXMLDocHandler- Parameters:
tag- the tag nameh- the tag's attributes
-
text
public void text(java.lang.String str)
Description copied from interface:SimpleXMLDocHandlerCalled when a text element is found.- Specified by:
textin interfaceSimpleXMLDocHandler- Parameters:
str- the text element, probably a fragment.
-
-