public class ExifReader extends java.lang.Object implements MetadataReader
Metadata
object with tag values in ExifSubIFDDirectory
,
ExifThumbnailDirectory
, ExifInteropDirectory
, GpsDirectory
and one of the many camera makernote directories.Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ExifReader() |
Modifier and Type | Method and Description |
---|---|
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 . |
public static final int TAG_EXIF_SUB_IFD_OFFSET
public static final int TAG_INTEROP_OFFSET
public static final int TAG_GPS_INFO_OFFSET
public static final int TAG_MAKER_NOTE_OFFSET
public static final int TIFF_HEADER_START_OFFSET
public void extract(BufferReader reader, Metadata metadata)
Metadata
.extract
in interface MetadataReader
reader
- The buffer reader from which Exif data should be read.metadata
- The Metadata object into which extracted values should be merged.public void extractTiff(BufferReader reader, Metadata metadata)
Metadata
.reader
- The BufferReader from which TIFF data should be read.metadata
- The Metadata object into which extracted values should be merged.Copyright © 2002-2013 Drew Noakes. All Rights Reserved.