com.drew.metadata.jpeg

Class JpegReader

Implemented Interfaces:
MetadataReader

public class JpegReader
extends java.lang.Object
implements MetadataReader

Author:
Darrell Silver http://www.darrellsilver.com and Drew Noakes

Constructor Summary

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

Method Summary

Metadata
extract()
Performs the Jpeg data extraction, returning a new instance of Metadata.
Metadata
extract(Metadata metadata)
Performs the Jpeg data extraction, adding found values to the specified instance of Metadata.

Constructor Details

JpegReader

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

JpegReader

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

JpegReader

public JpegReader(byte[] data)

Method Details

extract

public Metadata extract()
Performs the Jpeg data extraction, returning a new instance of Metadata.
Specified by:
extract in interface MetadataReader

extract

public Metadata extract(Metadata metadata)
Performs the Jpeg data extraction, adding found values to the specified instance of Metadata.
Specified by:
extract in interface MetadataReader

Copyright © 2006 Drew Noakes. All Rights Reserved.