com.drew.metadata.exif
Class ExifReader

java.lang.Object
  extended by com.drew.metadata.exif.ExifReader
All Implemented Interfaces:
MetadataReader

public class ExifReader
extends Object
implements MetadataReader

Decodes Exif binary data, populating a Metadata object with tag values in ExifSubIFDDirectory, ExifThumbnailDirectory, ExifInteropDirectory, GpsDirectory and one of the many camera makernote directories.

Author:
Drew Noakes http://drewnoakes.com

Field Summary
static int TAG_EXIF_SUB_IFD_OFFSET
          This tag is a pointer to the Exif SubIFD.
static int TAG_GPS_INFO_OFFSET
          This tag is a pointer to the Exif GPS IFD.
static int TAG_INTEROP_OFFSET
          This tag is a pointer to the Exif Interop IFD.
static int TAG_MAKER_NOTE_OFFSET
          This tag is a pointer to the Exif Makernote IFD.
static int TIFF_HEADER_START_OFFSET
           
 
Constructor Summary
ExifReader()
           
 
Method Summary
 void extract(BufferReader reader, Metadata metadata)
          Performs the Exif data extraction, adding found values to the specified instance of Metadata.
 void extractTiff(BufferReader reader, Metadata metadata)
          Performs the Exif data extraction on a TIFF/RAW, 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
 

Field Detail

TAG_EXIF_SUB_IFD_OFFSET

public static final int TAG_EXIF_SUB_IFD_OFFSET
This tag is a pointer to the Exif SubIFD.

See Also:
Constant Field Values

TAG_INTEROP_OFFSET

public static final int TAG_INTEROP_OFFSET
This tag is a pointer to the Exif Interop IFD.

See Also:
Constant Field Values

TAG_GPS_INFO_OFFSET

public static final int TAG_GPS_INFO_OFFSET
This tag is a pointer to the Exif GPS IFD.

See Also:
Constant Field Values

TAG_MAKER_NOTE_OFFSET

public static final int TAG_MAKER_NOTE_OFFSET
This tag is a pointer to the Exif Makernote IFD.

See Also:
Constant Field Values

TIFF_HEADER_START_OFFSET

public static final int TIFF_HEADER_START_OFFSET
See Also:
Constant Field Values
Constructor Detail

ExifReader

public ExifReader()
Method Detail

extract

public void extract(BufferReader reader,
                    Metadata metadata)
Performs the Exif data extraction, adding found values to the specified instance of Metadata.

Specified by:
extract in interface MetadataReader
Parameters:
reader - The buffer reader from which Exif data should be read.
metadata - The Metadata object into which extracted values should be merged.

extractTiff

public void extractTiff(BufferReader reader,
                        Metadata metadata)
Performs the Exif data extraction on a TIFF/RAW, adding found values to the specified instance of Metadata.

Parameters:
reader - The BufferReader from which TIFF data should be read.
metadata - The Metadata object into which extracted values should be merged.


Copyright © 2012. All Rights Reserved.