| java.lang.Object com.lowagie.text.pdf.SimpleNamedDestination
SimpleNamedDestination | public class SimpleNamedDestination implements SimpleXMLDocHandler(Code) | | author: Paulo Soares (psoares@consiste.pt) |
Method Summary | |
static PdfArray | createDestinationArray(String value, PdfWriter writer) | public void | endDocument() | public void | endElement(String tag) | public static String | escapeBinaryString(String s) | public static void | exportToXML(HashMap names, OutputStream out, String encoding, boolean onlyASCII) Exports the destinations to XML. | public static void | exportToXML(HashMap names, Writer wrt, String encoding, boolean onlyASCII) Exports the destinations to XML.
Parameters: names - the names Parameters: wrt - the export destination. | public static HashMap | getNamedDestination(PdfReader reader, boolean fromNames) | public static HashMap | importFromXML(InputStream in) Import the names from XML.
Parameters: in - the XML source. | public static HashMap | importFromXML(Reader in) Import the names from XML.
Parameters: in - the XML source. | public static PdfDictionary | outputNamedDestinationAsNames(HashMap names, PdfWriter writer) | public static PdfDictionary | outputNamedDestinationAsStrings(HashMap names, PdfWriter writer) | public void | startDocument() | public void | startElement(String tag, HashMap h) | public void | text(String str) | public static String | unEscapeBinaryString(String s) |
endDocument | public void endDocument()(Code) | | |
exportToXML | public static void exportToXML(HashMap names, OutputStream out, String encoding, boolean onlyASCII) throws IOException(Code) | | 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 names Parameters: out - the export destination. The stream is not closed Parameters: encoding - the encoding according to IANA conventions Parameters: onlyASCII - codes above 127 will always be escaped with &#nn; if true ,whatever the encoding throws: IOException - on error |
exportToXML | public static void exportToXML(HashMap names, Writer wrt, String encoding, boolean onlyASCII) throws IOException(Code) | | Exports the destinations to XML.
Parameters: names - the names Parameters: wrt - the export destination. The writer is not closed Parameters: encoding - the encoding according to IANA conventions Parameters: onlyASCII - codes above 127 will always be escaped with &#nn; if true ,whatever the encoding throws: IOException - on error |
importFromXML | public static HashMap importFromXML(Reader in) throws IOException(Code) | | Import the names from XML.
Parameters: in - the XML source. The reader is not closed throws: IOException - on error the names |
startDocument | public void startDocument()(Code) | | |
|
|