java.lang.Object
com.lowagie.text.pdf.SimpleNamedDestination
- All Implemented Interfaces:
SimpleXMLDocHandler
Deprecated.
- Author:
- Paulo Soares (psoares@consiste.pt)
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Called after the document is parsed.voidendElement(String tag) Deprecated.Called when an end tag is found.static StringDeprecated.static voidexportToXML(HashMap names, OutputStream out, String encoding, boolean onlyASCII) Deprecated.Exports the destinations to XML.static voidexportToXML(HashMap names, Writer wrt, String encoding, boolean onlyASCII) Deprecated.Exports the destinations to XML.getNamedDestination(PdfReader reader, boolean fromNames) Deprecated.Deprecated.Import the names from XML.importFromXML(Reader in) Deprecated.Import the names from XML.static PdfDictionaryoutputNamedDestinationAsNames(HashMap names, PdfWriter writer) Deprecated.static PdfDictionaryoutputNamedDestinationAsStrings(Map<String, String> names, PdfWriter writer) Deprecated.voidDeprecated.Called when the document starts to be parsed.voidstartElement(String tag, Map<String, String> h) Deprecated.Called when a start tag is found.voidDeprecated.Called when a text element is found.static StringDeprecated.
-
Method Details
-
getNamedDestination
Deprecated. -
exportToXML
public static void exportToXML(HashMap names, OutputStream out, String encoding, boolean onlyASCII) throws IOException Deprecated.Exports the destinations to XML. The DTD for this XML is:<?xml version='1.0' encoding='UTF-8'?> <!ELEMENT Name (#PCDATA)> <!ATTLIST Name Page CDATA #IMPLIED > <!ELEMENT Destination (Name)*>- Parameters:
names- the namesout- the export destination. The stream 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
-
exportToXML
public static void exportToXML(HashMap names, Writer wrt, String encoding, boolean onlyASCII) throws IOException Deprecated.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
-
importFromXML
Deprecated.Import the names from XML.- Parameters:
in- the XML source. The stream is not closed- Returns:
- the names
- Throws:
IOException- on error
-
importFromXML
Deprecated.Import the names from XML.- Parameters:
in- the XML source. The reader is not closed- Returns:
- the names
- Throws:
IOException- on error
-
outputNamedDestinationAsNames
Deprecated. -
outputNamedDestinationAsStrings
public static PdfDictionary outputNamedDestinationAsStrings(Map<String, String> names, PdfWriter writer) throws IOExceptionDeprecated.- Throws:
IOException
-
escapeBinaryString
Deprecated. -
unEscapeBinaryString
Deprecated. -
endDocument
public void endDocument()Deprecated.Description copied from interface:SimpleXMLDocHandlerCalled after the document is parsed.- Specified by:
endDocumentin interfaceSimpleXMLDocHandler
-
endElement
Deprecated.Description copied from interface:SimpleXMLDocHandlerCalled when an end tag is found.- Specified by:
endElementin interfaceSimpleXMLDocHandler- Parameters:
tag- the tag name
-
startDocument
public void startDocument()Deprecated.Description copied from interface:SimpleXMLDocHandlerCalled when the document starts to be parsed.- Specified by:
startDocumentin interfaceSimpleXMLDocHandler
-
startElement
Deprecated.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
Deprecated.Description copied from interface:SimpleXMLDocHandlerCalled when a text element is found.- Specified by:
textin interfaceSimpleXMLDocHandler- Parameters:
str- the text element, probably a fragment.
-