java.lang.Object
com.lowagie.text.xml.xmp.XmpReader
Deprecated.
Reads an XMP stream into an org.w3c.dom.Document objects. Allows you to replace the contents of a specific tag.
- Since:
- 2.1.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Adds a tag.booleanDeprecated.Replaces the content of a tag.byte[]Deprecated.Writes the document to a byte array.booleansetNodeText(Document domDocument, Node n, String value) Deprecated.Sets the text of this node.
-
Constructor Details
-
XmpReader
Deprecated.Constructs an XMP reader- Parameters:
bytes- the XMP content- Throws:
ExceptionConverter- on errorIOException- on errorSAXException- on error
-
-
Method Details
-
replace
Deprecated.Replaces the content of a tag.- Parameters:
namespaceURI- the URI of the namespacelocalName- the tag namevalue- the new content for the tag- Returns:
- true if the content was successfully replaced
- Since:
- 2.1.6 the return type has changed from void to boolean
-
add
Deprecated.Adds a tag.- Parameters:
parent- the tag name of the parentnamespaceURI- the URI of the namespacelocalName- the name of the tag to addvalue- the new content for the tag- Returns:
- true if the content was successfully added
- Since:
- 2.1.6
-
setNodeText
Deprecated.Sets the text of this node. All the child's node are deleted and a new child text node is created.- Parameters:
domDocument- theDocumentthat contains the noden- theNodeto add the text tovalue- the text to add- Returns:
trueif added successfully, elsefalse
-
serializeDoc
Deprecated.Writes the document to a byte array.- Returns:
- byte array of serialized doc
- Throws:
IOException- on error
-