com.drew.metadata.jpeg

Class JpegCommentReader

Implemented Interfaces:
MetadataReader

public class JpegCommentReader
extends java.lang.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

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

JpegCommentReader

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

JpegCommentReader

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

JpegCommentReader

public JpegCommentReader(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.