com.drew.metadata.jpeg

Class JpegCommentReader

public class JpegCommentReader extends Object implements MetadataReader

Author: Drew Noakes http://drewnoakes.com

Constructor Summary
JpegCommentReader(File jpegFile)
Creates a new JpegReader for the specified Jpeg jpegFile.
JpegCommentReader(InputStream is)
Creates a JpegCommentReader for a JPEG stream.
JpegCommentReader(byte[] data)
Method Summary
Metadataextract()
Performs the Jpeg data extraction, returning a new instance of Metadata.
Metadataextract(Metadata metadata)
Performs the Jpeg data extraction, adding found values to the specified instance of Metadata.

Constructor Detail

JpegCommentReader

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

JpegCommentReader

public JpegCommentReader(InputStream is)
Creates a JpegCommentReader for a JPEG stream.

Parameters: is JPEG stream. Stream will be closed.

JpegCommentReader

public JpegCommentReader(byte[] data)

Method Detail

extract

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

extract

public Metadata extract(Metadata metadata)
Performs the Jpeg data extraction, adding found values to the specified instance of Metadata.
Copyright © 2006 Drew Noakes. All Rights Reserved.