@Deprecated
public class XmpReader
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
EXTRASPACE |
Deprecated.
String used to fill the extra space.
|
static java.lang.String |
XPACKET_PI_BEGIN |
Deprecated.
Processing Instruction required at the start of an XMP stream
|
static java.lang.String |
XPACKET_PI_END_W |
Deprecated.
Processing Instruction required at the end of an XMP stream for XMP streams that can be updated
|
| Constructor | Description |
|---|---|
XmpReader(byte[] bytes) |
Deprecated.
Constructs an XMP reader
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
add(java.lang.String parent,
java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value) |
Deprecated.
Adds a tag.
|
boolean |
replaceDescriptionAttribute(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value) |
Deprecated.
Replaces the content of an attribute in the description tag.
|
boolean |
replaceNode(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value) |
Deprecated.
Replaces the content of a tag.
|
byte[] |
serializeDoc() |
Deprecated.
Writes the document to a byte array.
|
boolean |
setNodeText(org.w3c.dom.Document domDocument,
org.w3c.dom.Node n,
java.lang.String value) |
Deprecated.
Sets the text of this node.
|
public static final java.lang.String EXTRASPACE
public static final java.lang.String XPACKET_PI_BEGIN
public static final java.lang.String XPACKET_PI_END_W
public XmpReader(byte[] bytes)
throws org.xml.sax.SAXException,
java.io.IOException
bytes - the XMP contentExceptionConverterjava.io.IOExceptionorg.xml.sax.SAXExceptionpublic 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 tagpublic 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 tagpublic 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 tagpublic 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 addpublic byte[] serializeDoc()
throws java.io.IOException
java.io.IOExceptionCopyright © 1998–2018. All rights reserved.