|
|
||||||||
| 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 java.util.HashMap |
xmlLast
|
private java.util.HashMap |
xmlNames
|
| Constructor Summary | |
|---|---|
private |
SimpleNamedDestination()
|
| Method Summary | |
|---|---|
(package private) static PdfArray |
createDestinationArray(java.lang.String value,
PdfWriter writer)
|
void |
endDocument()
Called after the document is parsed. |
void |
endElement(java.lang.String tag)
Called when an end tag is found. |
static java.lang.String |
escapeBinaryString(java.lang.String s)
|
static void |
exportToXML(java.util.HashMap names,
java.io.OutputStream out,
java.lang.String encoding,
boolean onlyASCII)
Exports the destinations to XML. |
static void |
exportToXML(java.util.HashMap names,
java.io.Writer wrt,
java.lang.String encoding,
boolean onlyASCII)
Exports the destinations to XML. |
static java.util.HashMap |
getNamedDestination(PdfReader reader,
boolean fromNames)
|
static java.util.HashMap |
importFromXML(java.io.InputStream in)
Import the names from XML. |
static java.util.HashMap |
importFromXML(java.io.Reader in)
Import the names from XML. |
static PdfDictionary |
outputNamedDestinationAsNames(java.util.HashMap names,
PdfWriter writer)
|
static PdfDictionary |
outputNamedDestinationAsStrings(java.util.HashMap names,
PdfWriter writer)
|
void |
startDocument()
Called when the document starts to be parsed. |
void |
startElement(java.lang.String tag,
java.util.HashMap h)
Called when a start tag is found. |
void |
text(java.lang.String str)
Called when a text element is found. |
static java.lang.String |
unEscapeBinaryString(java.lang.String s)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.HashMap xmlNames
private java.util.HashMap xmlLast
| Constructor Detail |
|---|
private SimpleNamedDestination()
| Method Detail |
|---|
public static java.util.HashMap getNamedDestination(PdfReader reader,
boolean fromNames)
public static void exportToXML(java.util.HashMap names,
java.io.OutputStream out,
java.lang.String encoding,
boolean onlyASCII)
throws java.io.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
java.io.IOException - on error
public static void exportToXML(java.util.HashMap names,
java.io.Writer wrt,
java.lang.String encoding,
boolean onlyASCII)
throws java.io.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
java.io.IOException - on error
public static java.util.HashMap importFromXML(java.io.InputStream in)
throws java.io.IOException
in - the XML source. The stream is not closed
java.io.IOException - on error
public static java.util.HashMap importFromXML(java.io.Reader in)
throws java.io.IOException
in - the XML source. The reader is not closed
java.io.IOException - on error
static PdfArray createDestinationArray(java.lang.String value,
PdfWriter writer)
public static PdfDictionary outputNamedDestinationAsNames(java.util.HashMap names,
PdfWriter writer)
public static PdfDictionary outputNamedDestinationAsStrings(java.util.HashMap names,
PdfWriter writer)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String escapeBinaryString(java.lang.String s)
public static java.lang.String unEscapeBinaryString(java.lang.String s)
public void endDocument()
SimpleXMLDocHandler
endDocument in interface SimpleXMLDocHandlerpublic void endElement(java.lang.String tag)
SimpleXMLDocHandler
endElement in interface SimpleXMLDocHandlertag - the tag namepublic void startDocument()
SimpleXMLDocHandler
startDocument in interface SimpleXMLDocHandler
public void startElement(java.lang.String tag,
java.util.HashMap h)
SimpleXMLDocHandler
startElement in interface SimpleXMLDocHandlertag - the tag nameh - the tag's attributespublic void text(java.lang.String str)
SimpleXMLDocHandler
text in interface SimpleXMLDocHandlerstr - 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 | ||||||||