public class XmpReader extends Object
| Constructor and Description |
|---|
XmpReader(byte[] bytes)
Constructs an XMP reader
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(String parent,
String namespaceURI,
String localName,
String value)
Adds a tag.
|
boolean |
replace(String parent,
String namespaceURI,
String localName,
String value)
Replaces the content of a tag.
|
byte[] |
serializeDoc()
Writes the document to a byte array.
|
public XmpReader(byte[] bytes)
throws SAXException,
IOException
bytes - the XMP contentExceptionConverter - Exception with a converter errorIOException - Exception with a IO errorSAXException - Exception with a SAX errorpublic boolean replace(String parent, String namespaceURI, String localName, String value)
parent - the tag name of the parentnamespaceURI - the URI of the namespacelocalName - the tag namevalue - the new content for the tagpublic 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 tagpublic byte[] serializeDoc()
throws IOException
IOException - with a I/O errorCopyright © 2021. All rights reserved.