|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.pdf.SimpleNamedDestination
public final class SimpleNamedDestination
Field Summary | |
---|---|
private HashMap |
xmlLast
|
private HashMap |
xmlNames
|
Constructor Summary | |
---|---|
private |
SimpleNamedDestination()
|
Method Summary | |
---|---|
(package private) static PdfArray |
createDestinationArray(String value,
PdfWriter writer)
|
void |
endDocument()
Called after the document is parsed. |
void |
endElement(String tag)
Called when an end tag is found. |
static String |
escapeBinaryString(String s)
|
static void |
exportToXML(HashMap names,
OutputStream out,
String encoding,
boolean onlyASCII)
Exports the destinations to XML. |
static void |
exportToXML(HashMap names,
Writer wrt,
String encoding,
boolean onlyASCII)
Exports the destinations to XML. |
static HashMap |
getNamedDestination(PdfReader reader,
boolean fromNames)
|
static HashMap |
importFromXML(InputStream in)
Import the names from XML. |
static HashMap |
importFromXML(Reader in)
Import the names from XML. |
static PdfDictionary |
outputNamedDestinationAsNames(HashMap names,
PdfWriter writer)
|
static PdfDictionary |
outputNamedDestinationAsStrings(HashMap names,
PdfWriter writer)
|
void |
startDocument()
Called when the document starts to be parsed. |
void |
startElement(String tag,
HashMap h)
Called when a start tag is found. |
void |
text(String str)
Called when a text element is found. |
static String |
unEscapeBinaryString(String s)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private HashMap xmlNames
private HashMap xmlLast
Constructor Detail |
---|
private SimpleNamedDestination()
Method Detail |
---|
public static HashMap getNamedDestination(PdfReader reader, boolean fromNames)
public static void exportToXML(HashMap names, OutputStream out, String encoding, boolean onlyASCII) throws IOException
<?xml version='1.0' encoding='UTF-8'?> <!ELEMENT Name (#PCDATA)> <!ATTLIST Name Page CDATA #IMPLIED > <!ELEMENT Destination (Name)*>
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; if true
,
whatever the encoding
IOException
- on errorpublic static void exportToXML(HashMap names, Writer wrt, String encoding, boolean onlyASCII) throws IOException
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; if true
,
whatever the encoding
IOException
- on errorpublic static HashMap importFromXML(InputStream in) throws IOException
in
- the XML source. The stream is not closed
IOException
- on errorpublic static HashMap importFromXML(Reader in) throws IOException
in
- the XML source. The reader is not closed
IOException
- on errorstatic PdfArray createDestinationArray(String value, PdfWriter writer)
public static PdfDictionary outputNamedDestinationAsNames(HashMap names, PdfWriter writer)
public static PdfDictionary outputNamedDestinationAsStrings(HashMap names, PdfWriter writer) throws IOException
IOException
public static String escapeBinaryString(String s)
public static String unEscapeBinaryString(String s)
public void endDocument()
SimpleXMLDocHandler
endDocument
in interface SimpleXMLDocHandler
public void endElement(String tag)
SimpleXMLDocHandler
endElement
in interface SimpleXMLDocHandler
tag
- the tag namepublic void startDocument()
SimpleXMLDocHandler
startDocument
in interface SimpleXMLDocHandler
public void startElement(String tag, HashMap h)
SimpleXMLDocHandler
startElement
in interface SimpleXMLDocHandler
tag
- the tag nameh
- the tag's attributespublic void text(String str)
SimpleXMLDocHandler
text
in interface SimpleXMLDocHandler
str
- the text element, probably a fragment.
|
Hosted by Hostbasket | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |