com.drew.metadata.iptc
Class IptcReader

java.lang.Object
  extended by com.drew.metadata.iptc.IptcReader
All Implemented Interfaces:
MetadataReader

public class IptcReader
extends java.lang.Object
implements MetadataReader


Constructor Summary
IptcReader(byte[] data)
           
IptcReader(java.io.File jpegFile)
          Creates a new IptcReader for the specified Jpeg jpegFile.
IptcReader(java.io.InputStream is)
          Creates an IptcReader for a JPEG stream.
 
Method Summary
 Metadata extract()
          Performs the Exif data extraction, returning a new instance of Metadata.
 Metadata extract(Metadata metadata)
          Performs the Exif data extraction, adding found values to the specified instance of Metadata.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IptcReader

public IptcReader(java.io.File jpegFile)
           throws JpegProcessingException
Creates a new IptcReader for the specified Jpeg jpegFile.

Throws:
JpegProcessingException

IptcReader

public IptcReader(java.io.InputStream is)
           throws JpegProcessingException
Creates an IptcReader for a JPEG stream.

Parameters:
is - JPEG stream. Stream will be closed.
Throws:
JpegProcessingException

IptcReader

public IptcReader(byte[] data)
Method Detail

extract

public Metadata extract()
Performs the Exif data extraction, returning a new instance of Metadata.

Specified by:
extract in interface MetadataReader

extract

public Metadata extract(Metadata metadata)
Performs the Exif data extraction, adding found values to the specified instance of Metadata.

Specified by:
extract in interface MetadataReader


Copyright © 2006 Drew Noakes. All Rights Reserved.