com.drew.metadata.iptc

Class IptcReader

Implemented Interfaces:
MetadataReader

public class IptcReader
extends java.lang.Object
implements MetadataReader

Constructor Summary

IptcReader(File jpegFile)
Creates a new IptcReader for the specified Jpeg jpegFile.
IptcReader(InputStream is)
Creates an IptcReader for a JPEG stream.
IptcReader(byte[] data)

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.

Constructor Details

IptcReader

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

IptcReader

public IptcReader(InputStream is)
            throws JpegProcessingException
Creates an IptcReader for a JPEG stream.
Parameters:
is - JPEG stream. Stream will be closed.

IptcReader

public IptcReader(byte[] data)

Method Details

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.