public final class ExifReader extends Object
Modifier | Constructor and Description |
---|---|
private |
ExifReader() |
Modifier and Type | Method and Description |
---|---|
private static double |
readAxis(GpsDirectory dirGps,
int gpsTag,
int gpsTagRef,
char cRef) |
static Double |
readDirection(File filename)
Returns the direction of the given JPEG file.
|
static Double |
readDirection(GpsDirectory dirGps)
Returns the direction of the given EXIF GPS directory.
|
static LatLon |
readLatLon(File filename)
Returns the geolocation of the given JPEG file.
|
static LatLon |
readLatLon(GpsDirectory dirGps)
Returns the geolocation of the given EXIF GPS directory.
|
static Integer |
readOrientation(File filename)
Returns the image orientation of the given JPEG file.
|
static Date |
readTime(File filename)
Returns the date/time from the given JPEG file.
|
private ExifReader()
public static Date readTime(File filename) throws ParseException
filename
- The JPEG file to readnull
if not foundParseException
- if DateParser.parse(java.lang.String)
fails to parse date/timepublic static Integer readOrientation(File filename)
filename
- The JPEG file to readint
. Default value is 1. Possible values are listed in EXIF spec as follows:public static LatLon readLatLon(File filename)
filename
- The JPEG file to readnull
if not foundpublic static LatLon readLatLon(GpsDirectory dirGps) throws MetadataException
dirGps
- The EXIF GPS directorynull
if dirGps
is nullMetadataException
public static Double readDirection(File filename)
filename
- The JPEG file to readnull
if missing or if dirGps
is nullpublic static Double readDirection(GpsDirectory dirGps)
dirGps
- The EXIF GPS directorynull
if missing or if dirGps
is nullprivate static double readAxis(GpsDirectory dirGps, int gpsTag, int gpsTagRef, char cRef) throws MetadataException
MetadataException