Package pixy.meta.xmp
Class XMP
java.lang.Object
pixy.meta.Metadata
pixy.meta.xmp.XMP
- All Implemented Interfaces:
java.lang.Iterable<MetadataEntry>
,MetadataReader
,Reader
public abstract class XMP extends Metadata
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description byte[]
getData()
byte[]
getExtendedXmpData()
org.w3c.dom.Document
getExtendedXmpDocument()
org.w3c.dom.Document
getMergedDocument()
Merge the standard XMP and the extended XMP DOMorg.w3c.dom.Document
getXmpDocument()
boolean
hasExtendedXmp()
java.util.Iterator<MetadataEntry>
iterator()
void
read()
void
setExtendedXMPData(byte[] extendedXmpData)
void
showMetadata()
static void
showXMP(XMP xmp)
abstract void
write(java.io.OutputStream os)
Writes the metadata out to the output streamMethods inherited from class pixy.meta.Metadata
ensureDataRead, extractThumbnails, extractThumbnails, extractThumbnails, getType, insertComment, insertComments, insertExif, insertExif, insertICCProfile, insertIPTC, insertIPTC, insertIRB, insertIRB, insertIRBThumbnail, insertXMP, insertXMP, isDataRead, readMetadata, readMetadata, readMetadata, removeMetadata
-
Constructor Details
-
Method Details
-
showXMP
-
getData
public byte[] getData() -
getExtendedXmpData
public byte[] getExtendedXmpData() -
getExtendedXmpDocument
public org.w3c.dom.Document getExtendedXmpDocument() -
getMergedDocument
public org.w3c.dom.Document getMergedDocument()Merge the standard XMP and the extended XMP DOMThis is a very expensive operation, avoid if possible
- Returns:
- a merged Document for the entire XMP data with the GUID from the standard XMP document removed
-
getXmpDocument
public org.w3c.dom.Document getXmpDocument() -
hasExtendedXmp
public boolean hasExtendedXmp() -
iterator
-
read
public void read() throws java.io.IOException- Throws:
java.io.IOException
-
setExtendedXMPData
public void setExtendedXMPData(byte[] extendedXmpData) -
showMetadata
public void showMetadata() -
write
public abstract void write(java.io.OutputStream os) throws java.io.IOExceptionDescription copied from class:Metadata
Writes the metadata out to the output stream
-