|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itextpdf.text.xml.xmp.XmpReader
public class XmpReader
Reads an XMP stream into an org.w3c.dom.Document objects. Allows you to replace the contents of a specific tag.
| Constructor Summary | |
|---|---|
XmpReader(byte[] bytes)
Constructs an XMP reader |
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.String parent,
java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value)
Adds a tag. |
boolean |
replaceDescriptionAttribute(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value)
Replaces the content of an attribute in the description tag. |
boolean |
replaceNode(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value)
Replaces the content of a tag. |
byte[] |
serializeDoc()
Writes the document to a byte array. |
boolean |
setNodeText(org.w3c.dom.Document domDocument,
org.w3c.dom.Node n,
java.lang.String value)
Sets the text of this node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmpReader(byte[] bytes)
throws org.xml.sax.SAXException,
java.io.IOException
bytes - the XMP content
ExceptionConverter
java.io.IOException
org.xml.sax.SAXException| Method Detail |
|---|
public boolean replaceNode(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value)
namespaceURI - the URI of the namespacelocalName - the tag namevalue - the new content for the tag
public boolean replaceDescriptionAttribute(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value)
namespaceURI - the URI of the namespacelocalName - the tag namevalue - the new content for the tag
public boolean add(java.lang.String parent,
java.lang.String namespaceURI,
java.lang.String localName,
java.lang.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(org.w3c.dom.Document domDocument,
org.w3c.dom.Node n,
java.lang.String value)
domDocument - the Document that contains the noden - the Node to add the text tovalue - the text to add
public byte[] serializeDoc()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||