public class ExifReader extends java.lang.Object implements MetadataReader
Metadata
object with tag values in ExifDirectory
,
GpsDirectory
and one of the many camera makernote directories.Modifier and Type | Field and Description |
---|---|
static int |
TAG_EXIF_OFFSET |
static int |
TAG_GPS_INFO_OFFSET |
static int |
TAG_INTEROP_OFFSET |
static int |
TAG_MAKER_NOTE |
static int |
TIFF_HEADER_START_OFFSET |
Constructor and Description |
---|
ExifReader(byte[] data)
Creates an ExifReader for the given Exif data segment.
|
ExifReader(java.io.File jpegFile)
Deprecated.
Not all files will be Jpegs! Use a constructor that provides the exif segment in isolation.
|
ExifReader(java.io.InputStream jpegInputStream)
Deprecated.
Not all files will be Jpegs! Use a constructor that provides the exif segment in isolation.
|
ExifReader(JpegSegmentData segmentData)
Deprecated.
Not all files will be Jpegs! This overload doesn't offer much convenience to the caller.
|
Modifier and Type | Method and Description |
---|---|
Metadata |
extract()
Performs the Exif data extraction, returning a new instance of
Metadata . |
Metadata |
extract(Metadata metadata)
Performs the Exif data extraction, adding found values to the specified
instance of
Metadata . |
Metadata |
extractTiff(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_OFFSET
public static final int TAG_INTEROP_OFFSET
public static final int TAG_GPS_INFO_OFFSET
public static final int TAG_MAKER_NOTE
public static final int TIFF_HEADER_START_OFFSET
public ExifReader(JpegSegmentData segmentData)
segmentData
- public ExifReader(java.io.File jpegFile) throws JpegProcessingException
jpegFile
- JpegProcessingException
public ExifReader(java.io.InputStream jpegInputStream) throws JpegProcessingException
jpegInputStream
- JPEG stream. Stream will be closed.JpegProcessingException
public ExifReader(byte[] data)
public Metadata extract()
Metadata
.extract
in interface MetadataReader
public Metadata extract(Metadata metadata)
Metadata
.extract
in interface MetadataReader
Copyright © 2006 Drew Noakes. All Rights Reserved.