com.drew.metadata
Interface MetadataReader

All Known Implementing Classes:
AdobeJpegReader, ExifReader, IccReader, IptcReader, JfifReader, JpegCommentReader, JpegReader, PhotoshopReader, PsdReader, XmpReader

public interface MetadataReader

Interface through which all classes responsible for decoding a particular type of metadata may be called. Note that the data source is not specified on this interface. Instead it is suggested that implementations take their data within a constructor. Constructors might be overloaded to allow for different sources, such as files, streams and byte arrays. As such, instances of implementations of this interface would be single-use and not thread-safe.

Author:
Drew Noakes http://drewnoakes.com

Method Summary
 void extract(BufferReader reader, Metadata metadata)
          Extract metadata from the source and merge it into an existing Metadata object.
 

Method Detail

extract

void extract(BufferReader reader,
             Metadata metadata)
Extract metadata from the source and merge it into an existing Metadata object.

Parameters:
reader - The reader from which the metadata should be extracted.
metadata - The Metadata object into which extracted values should be merged.


Copyright © 2012. All Rights Reserved.