com.drew.metadata.jpeg
Class JpegCommentReader

java.lang.Object
  extended by com.drew.metadata.jpeg.JpegCommentReader
All Implemented Interfaces:
MetadataReader

public class JpegCommentReader
extends java.lang.Object
implements MetadataReader

Author:
Drew Noakes http://drewnoakes.com

Constructor Summary
JpegCommentReader(byte[] data)
           
JpegCommentReader(java.io.File jpegFile)
          Creates a new JpegReader for the specified Jpeg jpegFile.
JpegCommentReader(java.io.InputStream is)
          Creates a JpegCommentReader for a JPEG stream.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpegCommentReader

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

Throws:
JpegProcessingException

JpegCommentReader

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

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

JpegCommentReader

public JpegCommentReader(byte[] data)
Method Detail

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.