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
Direct Known Subclasses:
GifXMP, JpegXMP, PngXMP, TiffXMP

public abstract class XMP
extends Metadata
  • Constructor Details

    • XMP

      public XMP​(byte[] data)
    • XMP

      public XMP​(java.lang.String xmp)
    • XMP

      public XMP​(java.lang.String xmp, java.lang.String extendedXmp)
  • Method Details

    • showXMP

      public static void showXMP​(XMP xmp)
    • getData

      public byte[] getData()
      Overrides:
      getData in class Metadata
    • 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 DOM

      This 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

      public java.util.Iterator<MetadataEntry> 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.IOException
      Description copied from class: Metadata
      Writes the metadata out to the output stream
      Overrides:
      write in class Metadata
      Parameters:
      os - OutputStream to write the metadata to
      Throws:
      java.io.IOException