com.drew.metadata
Interface MetadataReader

All Known Implementing Classes:
ExifReader, IptcReader, JpegCommentReader, JpegReader

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 threadsafe.


Method Summary
 Metadata extract()
          Deprecated. Use the overload that takes a Metadata object instead
 Metadata extract(Metadata metadata)
          Extract metadata from the source and merge it into an existing Metadata object.
 

Method Detail

extract

Metadata extract()
Deprecated. Use the overload that takes a Metadata object instead

Create a new Metadata instance and return it, populated with whatever directories this MetadataReader implementation is responsible for.

Returns:
The populated Metadata object.

extract

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

Returns:
The updated Metadata object.