|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.itextpdf.text.xml.xmp.XmpReader
@Deprecated public class XmpReader
Reads an XMP stream into an org.w3c.dom.Document objects. Allows you to replace the contents of a specific tag.
Field Summary | |
---|---|
static String |
EXTRASPACE
Deprecated. String used to fill the extra space. |
static String |
XPACKET_PI_BEGIN
Deprecated. Processing Instruction required at the start of an XMP stream |
static String |
XPACKET_PI_END_W
Deprecated. Processing Instruction required at the end of an XMP stream for XMP streams that can be updated |
Constructor Summary | |
---|---|
XmpReader(byte[] bytes)
Deprecated. Constructs an XMP reader |
Method Summary | |
---|---|
boolean |
add(String parent,
String namespaceURI,
String localName,
String value)
Deprecated. Adds a tag. |
boolean |
replaceDescriptionAttribute(String namespaceURI,
String localName,
String value)
Deprecated. Replaces the content of an attribute in the description tag. |
boolean |
replaceNode(String namespaceURI,
String localName,
String value)
Deprecated. Replaces the content of a tag. |
byte[] |
serializeDoc()
Deprecated. Writes the document to a byte array. |
boolean |
setNodeText(Document domDocument,
Node n,
String value)
Deprecated. Sets the text of this node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String EXTRASPACE
public static final String XPACKET_PI_BEGIN
public static final String XPACKET_PI_END_W
Constructor Detail |
---|
public XmpReader(byte[] bytes) throws SAXException, IOException
bytes
- the XMP content
ExceptionConverter
IOException
SAXException
Method Detail |
---|
public boolean replaceNode(String namespaceURI, String localName, String value)
namespaceURI
- the URI of the namespacelocalName
- the tag namevalue
- the new content for the tag
public boolean replaceDescriptionAttribute(String namespaceURI, String localName, String value)
namespaceURI
- the URI of the namespacelocalName
- the tag namevalue
- the new content for the tag
public boolean add(String parent, String namespaceURI, String localName, String value)
namespaceURI
- the URI of the namespaceparent
- the tag name of the parentlocalName
- the name of the tag to addvalue
- the new content for the tag
public boolean setNodeText(Document domDocument, Node n, String value)
domDocument
- the Document
that contains the noden
- the Node
to add the text tovalue
- the text to addpublic byte[] serializeDoc() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |