Class IPTC

java.lang.Object
pixy.meta.Metadata
pixy.meta.iptc.IPTC
All Implemented Interfaces:
java.lang.Iterable<MetadataEntry>, MetadataReader, Reader

public class IPTC
extends Metadata
  • Constructor Details

    • IPTC

      public IPTC()
    • IPTC

      public IPTC​(byte[] data)
  • Method Details

    • showIPTC

      public static void showIPTC​(byte[] data)
    • showIPTC

      public static void showIPTC​(java.io.InputStream is)
    • addDataSet

      public void addDataSet​(IPTCDataSet dataSet)
    • addDataSets

      public void addDataSets​(java.util.Collection<? extends IPTCDataSet> dataSets)
    • getAsString

      public java.lang.String getAsString​(IPTCTag key)
      Get a string representation of the IPTCDataSet associated with the key
      Parameters:
      key - the IPTCTag for the IPTCDataSet
      Returns:
      a String representation of the IPTCDataSet, separated by ";"
    • getDataSet

      public java.util.List<IPTCDataSet> getDataSet​(IPTCTag key)
      Get a list of IPTCDataSet associated with a key
      Parameters:
      key - IPTCTag of the DataSet
      Returns:
      a list of IPTCDataSet associated with the key
    • getDataSets

      public java.util.Map<IPTCTag,​java.util.List<IPTCDataSet>> getDataSets()
      Get all the IPTCDataSet as a map for this IPTC data
      Returns:
      a map with the key for the IPTCDataSet tag and a list of IPTCDataSet as the value
    • iterator

      public java.util.Iterator<MetadataEntry> iterator()
    • read

      public void read() throws java.io.IOException
      Throws:
      java.io.IOException
    • write

      public 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