Class XmpReader
java.lang.Object
com.itextpdf.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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classDeprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DocumentDeprecated.static final StringDeprecated.String used to fill the extra space.static final StringDeprecated.Processing Instruction required at the start of an XMP streamstatic final StringDeprecated.Processing Instruction required at the end of an XMP stream for XMP streams that can be updated -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Adds a tag.booleanreplaceDescriptionAttribute(String namespaceURI, String localName, String value) Deprecated.Replaces the content of an attribute in the description tag.booleanreplaceNode(String namespaceURI, String localName, String value) Deprecated.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.
-
Field Details
-
EXTRASPACE
-
XPACKET_PI_BEGIN
Deprecated.Processing Instruction required at the start of an XMP stream- See Also:
-
XPACKET_PI_END_W
Deprecated.Processing Instruction required at the end of an XMP stream for XMP streams that can be updated- See Also:
-
domDocument
Deprecated.
-
-
Constructor Details
-
XmpReader
Deprecated.Constructs an XMP reader- Parameters:
bytes- the XMP content- Throws:
ExceptionConverterIOExceptionSAXException
-
-
Method Details
-
replaceNode
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
-
replaceDescriptionAttribute
Deprecated.Replaces the content of an attribute in the description 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:
- 5.0.0 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
-
serializeDoc
-