|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.drew.metadata.Directory
com.drew.metadata.exif.ExifDirectory
public class ExifDirectory
Describes Exif tags such as Camera Model, Date Taken, Aperture and Shutter Speed.
Field Summary | |
---|---|
static int |
COMPRESSION_JPEG
|
static int |
COMPRESSION_NONE
|
static int |
PHOTOMETRIC_INTERPRETATION_MONOCHROME
|
static int |
PHOTOMETRIC_INTERPRETATION_RGB
|
static int |
PHOTOMETRIC_INTERPRETATION_YCBCR
|
static int |
TAG_35MM_FILM_EQUIV_FOCAL_LENGTH
This tag indicates the equivalent focal length assuming a 35mm film camera, in mm. |
static int |
TAG_APERTURE
The actual aperture value of lens when the image was taken. |
static int |
TAG_ARTIST
|
static int |
TAG_BATTERY_LEVEL
|
static int |
TAG_BITS_PER_SAMPLE
When image format is no compression, this value shows the number of bits per component for each pixel. |
static int |
TAG_BRIGHTNESS_VALUE
|
static int |
TAG_CFA_PATTERN
|
static int |
TAG_CFA_PATTERN_2
There are two definitions for CFA pattern, I don't know the difference... |
static int |
TAG_CFA_REPEAT_PATTERN_DIM
|
static int |
TAG_COLOR_SPACE
Defines Color Space. |
static int |
TAG_COMPONENTS_CONFIGURATION
|
static int |
TAG_COMPRESSION
Shows compression method for Thumbnail. |
static int |
TAG_COMPRESSION_LEVEL
Average (rough estimate) compression level in JPEG bits per pixel. |
static int |
TAG_CONTRAST
This tag indicates the direction of contrast processing applied by the camera when the image was shot. |
static int |
TAG_COPYRIGHT
|
static int |
TAG_CUSTOM_RENDERED
This tag indicates the use of special processing on image data, such as rendering geared to output. |
static int |
TAG_DATETIME
|
static int |
TAG_DATETIME_DIGITIZED
|
static int |
TAG_DATETIME_ORIGINAL
|
static int |
TAG_DEVICE_SETTING_DESCRIPTION
This tag indicates information on the picture-taking conditions of a particular camera model. |
static int |
TAG_DIGITAL_ZOOM_RATIO
This tag indicates the digital zoom ratio when the image was shot. |
static int |
TAG_DOCUMENT_NAME
|
static int |
TAG_EXIF_IMAGE_HEIGHT
|
static int |
TAG_EXIF_IMAGE_WIDTH
|
static int |
TAG_EXIF_VERSION
|
static int |
TAG_EXPOSURE_BIAS
|
static int |
TAG_EXPOSURE_INDEX
|
static int |
TAG_EXPOSURE_INDEX_2
There are two definitions for exposure index, I don't know the difference... |
static int |
TAG_EXPOSURE_MODE
This tag indicates the exposure mode set when the image was shot. |
static int |
TAG_EXPOSURE_PROGRAM
Exposure program that the camera used when image was taken. |
static int |
TAG_EXPOSURE_TIME
Exposure time (reciprocal of shutter speed). |
static int |
TAG_FILE_SOURCE
|
static int |
TAG_FILL_ORDER
1 = Normal 2 = Reversed |
static int |
TAG_FLASH
0x0 = 0000000 = No Flash 0x1 = 0000001 = Fired 0x5 = 0000101 = Fired, Return not detected 0x7 = 0000111 = Fired, Return detected 0x9 = 0001001 = On 0xd = 0001101 = On, Return not detected 0xf = 0001111 = On, Return detected 0x10 = 0010000 = Off 0x18 = 0011000 = Auto, Did not fire 0x19 = 0011001 = Auto, Fired 0x1d = 0011101 = Auto, Fired, Return not detected 0x1f = 0011111 = Auto, Fired, Return detected 0x20 = 0100000 = No flash function 0x41 = 1000001 = Fired, Red-eye reduction 0x45 = 1000101 = Fired, Red-eye reduction, Return not detected 0x47 = 1000111 = Fired, Red-eye reduction, Return detected 0x49 = 1001001 = On, Red-eye reduction 0x4d = 1001101 = On, Red-eye reduction, Return not detected 0x4f = 1001111 = On, Red-eye reduction, Return detected 0x59 = 1011001 = Auto, Fired, Red-eye reduction 0x5d = 1011101 = Auto, Fired, Red-eye reduction, Return not detected 0x5f = 1011111 = Auto, Fired, Red-eye reduction, Return detected 6543210 (positions) This is a bitmask. |
static int |
TAG_FLASH_ENERGY
|
static int |
TAG_FLASH_ENERGY_2
|
static int |
TAG_FLASHPIX_VERSION
|
static int |
TAG_FNUMBER
The actual F-number(F-stop) of lens when the image was taken. |
static int |
TAG_FOCAL_LENGTH
Focal length of lens used to take image. |
static int |
TAG_FOCAL_PLANE_UNIT
Unit of FocalPlaneXResoluton/FocalPlaneYResolution. |
static int |
TAG_FOCAL_PLANE_X_RES
|
static int |
TAG_FOCAL_PLANE_Y_RES
|
static int |
TAG_GAIN_CONTROL
This tag indicates the degree of overall image gain adjustment. |
static int |
TAG_GPS_INFO
|
static int |
TAG_IMAGE_DESCRIPTION
|
static int |
TAG_IMAGE_HISTORY
|
static int |
TAG_IMAGE_NUMBER
|
static int |
TAG_IMAGE_UNIQUE_ID
This tag indicates an identifier assigned uniquely to each image. |
static int |
TAG_INTER_COLOR_PROFILE
|
static int |
TAG_INTERLACE
|
static int |
TAG_IPTC_NAA
|
static int |
TAG_ISO_EQUIVALENT
|
static int |
TAG_JPEG_TABLES
|
static int |
TAG_LIGHT_SOURCE
|
static int |
TAG_MAKE
|
static int |
TAG_MAX_APERTURE
Maximum aperture value of lens. |
static int |
TAG_MAX_SAMPLE_VALUE
|
static int |
TAG_METERING_MODE
Exposure metering method. |
static int |
TAG_MIN_SAMPLE_VALUE
|
static int |
TAG_MODEL
|
static int |
TAG_NEW_SUBFILE_TYPE
The new subfile type tag. |
static int |
TAG_NOISE
|
static int |
TAG_OECF
|
static int |
TAG_ORIENTATION
|
static int |
TAG_PAGE_NAME
|
static int |
TAG_PHOTOMETRIC_INTERPRETATION
Shows the color space of the image data components. |
static int |
TAG_PLANAR_CONFIGURATION
When image format is no compression YCbCr, this value shows byte aligns of YCbCr data. |
static int |
TAG_PREDICTOR
|
static int |
TAG_PRIMARY_CHROMATICITIES
|
static int |
TAG_REFERENCE_BLACK_WHITE
|
static int |
TAG_RELATED_SOUND_FILE
|
static int |
TAG_RESOLUTION_UNIT
|
static int |
TAG_ROWS_PER_STRIP
The raster is codified by a single block of data holding this many rows. |
static int |
TAG_SAMPLES_PER_PIXEL
Each pixel is composed of this many samples. |
static int |
TAG_SATURATION
This tag indicates the direction of saturation processing applied by the camera when the image was shot. |
static int |
TAG_SCENE_CAPTURE_TYPE
This tag indicates the type of scene that was shot. |
static int |
TAG_SCENE_TYPE
|
static int |
TAG_SECURITY_CLASSIFICATION
|
static int |
TAG_SELF_TIMER_MODE
|
static int |
TAG_SENSING_METHOD
|
static int |
TAG_SHARPNESS
This tag indicates the direction of sharpness processing applied by the camera when the image was shot. |
static int |
TAG_SHUTTER_SPEED
Shutter speed by APEX value. |
static int |
TAG_SOFTWARE
|
static int |
TAG_SPATIAL_FREQ_RESPONSE
|
static int |
TAG_SPATIAL_FREQ_RESPONSE_2
|
static int |
TAG_SPECTRAL_SENSITIVITY
|
static int |
TAG_STRIP_BYTE_COUNTS
The size of the raster data in bytes. |
static int |
TAG_STRIP_OFFSETS
The position in the file of raster data. |
static int |
TAG_SUB_IFDS
|
static int |
TAG_SUBFILE_TYPE
The old subfile type tag. |
static int |
TAG_SUBJECT_DISTANCE
Indicates the distance the autofocus camera is focused to. |
static int |
TAG_SUBJECT_DISTANCE_RANGE
This tag indicates the distance to the subject. |
static int |
TAG_SUBJECT_LOCATION
|
static int |
TAG_SUBJECT_LOCATION_2
|
static int |
TAG_SUBSECOND_TIME
|
static int |
TAG_SUBSECOND_TIME_DIGITIZED
|
static int |
TAG_SUBSECOND_TIME_ORIGINAL
|
static int |
TAG_THRESHOLDING
1 = No dithering or halftoning 2 = Ordered dither or halftone 3 = Randomized dither |
static int |
TAG_THUMBNAIL_DATA
|
static int |
TAG_THUMBNAIL_IMAGE_HEIGHT
|
static int |
TAG_THUMBNAIL_IMAGE_WIDTH
|
static int |
TAG_THUMBNAIL_LENGTH
|
static int |
TAG_THUMBNAIL_OFFSET
|
static int |
TAG_TIFF_EP_STANDARD_ID
|
static int |
TAG_TILE_BYTE_COUNTS
|
static int |
TAG_TILE_LENGTH
|
static int |
TAG_TILE_OFFSETS
|
static int |
TAG_TILE_WIDTH
|
static int |
TAG_TIME_ZONE_OFFSET
|
static int |
TAG_TRANSFER_FUNCTION
|
static int |
TAG_USER_COMMENT
|
static int |
TAG_WHITE_BALANCE
White balance (aka light source). |
static int |
TAG_WHITE_BALANCE_MODE
This tag indicates the white balance mode set when the image was shot. |
static int |
TAG_WHITE_POINT
|
static int |
TAG_WIN_AUTHOR
The image author, as used by Windows XP (called Artist in the Windows shell). |
static int |
TAG_WIN_COMMENT
The image comment, as used by Windows XP. |
static int |
TAG_WIN_KEYWORDS
The image keywords, as used by Windows XP. |
static int |
TAG_WIN_SUBJECT
The image subject, as used by Windows XP. |
static int |
TAG_WIN_TITLE
The image title, as used by Windows XP. |
static int |
TAG_X_RESOLUTION
|
static int |
TAG_Y_RESOLUTION
|
static int |
TAG_YCBCR_COEFFICIENTS
|
static int |
TAG_YCBCR_POSITIONING
|
static int |
TAG_YCBCR_SUBSAMPLING
|
protected static HashMap |
tagNameMap
|
Fields inherited from class com.drew.metadata.Directory |
---|
_definedTagList, _descriptor, _tagMap |
Constructor Summary | |
---|---|
ExifDirectory()
|
Method Summary | |
---|---|
boolean |
containsThumbnail()
|
String |
getName()
Provides the name of the directory, for display purposes. |
protected HashMap |
getTagNameMap()
Provides the map of tag names, hashed by tag type identifier. |
byte[] |
getThumbnailData()
|
void |
writeThumbnail(String filename)
|
Methods inherited from class com.drew.metadata.Directory |
---|
addError, containsTag, getBoolean, getByteArray, getDate, getDescription, getDouble, getErrorCount, getErrors, getFloat, getInt, getIntArray, getLong, getObject, getRational, getRationalArray, getString, getStringArray, getTagCount, getTagIterator, getTagName, hasErrors, setBoolean, setByteArray, setDate, setDescriptor, setDouble, setFloat, setInt, setIntArray, setLong, setObject, setObjectArray, setRational, setRationalArray, setString, setStringArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TAG_SUB_IFDS
public static final int TAG_GPS_INFO
public static final int TAG_APERTURE
public static final int TAG_BITS_PER_SAMPLE
public static final int TAG_COMPRESSION
public static final int COMPRESSION_NONE
public static final int COMPRESSION_JPEG
public static final int TAG_PHOTOMETRIC_INTERPRETATION
public static final int TAG_THRESHOLDING
public static final int PHOTOMETRIC_INTERPRETATION_MONOCHROME
public static final int PHOTOMETRIC_INTERPRETATION_RGB
public static final int PHOTOMETRIC_INTERPRETATION_YCBCR
public static final int TAG_STRIP_OFFSETS
public static final int TAG_SAMPLES_PER_PIXEL
public static final int TAG_ROWS_PER_STRIP
public static final int TAG_STRIP_BYTE_COUNTS
public static final int TAG_MIN_SAMPLE_VALUE
public static final int TAG_MAX_SAMPLE_VALUE
public static final int TAG_PLANAR_CONFIGURATION
public static final int TAG_YCBCR_SUBSAMPLING
public static final int TAG_IMAGE_DESCRIPTION
public static final int TAG_SOFTWARE
public static final int TAG_DATETIME
public static final int TAG_WHITE_POINT
public static final int TAG_PRIMARY_CHROMATICITIES
public static final int TAG_YCBCR_COEFFICIENTS
public static final int TAG_REFERENCE_BLACK_WHITE
public static final int TAG_COPYRIGHT
public static final int TAG_NEW_SUBFILE_TYPE
public static final int TAG_SUBFILE_TYPE
public static final int TAG_TRANSFER_FUNCTION
public static final int TAG_ARTIST
public static final int TAG_PREDICTOR
public static final int TAG_TILE_WIDTH
public static final int TAG_TILE_LENGTH
public static final int TAG_TILE_OFFSETS
public static final int TAG_TILE_BYTE_COUNTS
public static final int TAG_JPEG_TABLES
public static final int TAG_CFA_REPEAT_PATTERN_DIM
public static final int TAG_CFA_PATTERN_2
public static final int TAG_BATTERY_LEVEL
public static final int TAG_IPTC_NAA
public static final int TAG_INTER_COLOR_PROFILE
public static final int TAG_SPECTRAL_SENSITIVITY
public static final int TAG_OECF
public static final int TAG_INTERLACE
public static final int TAG_TIME_ZONE_OFFSET
public static final int TAG_SELF_TIMER_MODE
public static final int TAG_FLASH_ENERGY
public static final int TAG_SPATIAL_FREQ_RESPONSE
public static final int TAG_NOISE
public static final int TAG_IMAGE_NUMBER
public static final int TAG_SECURITY_CLASSIFICATION
public static final int TAG_IMAGE_HISTORY
public static final int TAG_SUBJECT_LOCATION
public static final int TAG_EXPOSURE_INDEX_2
public static final int TAG_TIFF_EP_STANDARD_ID
public static final int TAG_FLASH_ENERGY_2
public static final int TAG_SPATIAL_FREQ_RESPONSE_2
public static final int TAG_SUBJECT_LOCATION_2
public static final int TAG_MAKE
public static final int TAG_MODEL
public static final int TAG_ORIENTATION
public static final int TAG_X_RESOLUTION
public static final int TAG_Y_RESOLUTION
public static final int TAG_PAGE_NAME
public static final int TAG_RESOLUTION_UNIT
public static final int TAG_THUMBNAIL_OFFSET
public static final int TAG_THUMBNAIL_LENGTH
public static final int TAG_YCBCR_POSITIONING
public static final int TAG_EXPOSURE_TIME
public static final int TAG_FNUMBER
public static final int TAG_EXPOSURE_PROGRAM
public static final int TAG_ISO_EQUIVALENT
public static final int TAG_EXIF_VERSION
public static final int TAG_DATETIME_ORIGINAL
public static final int TAG_DATETIME_DIGITIZED
public static final int TAG_COMPONENTS_CONFIGURATION
public static final int TAG_COMPRESSION_LEVEL
public static final int TAG_SHUTTER_SPEED
public static final int TAG_BRIGHTNESS_VALUE
public static final int TAG_EXPOSURE_BIAS
public static final int TAG_MAX_APERTURE
public static final int TAG_SUBJECT_DISTANCE
public static final int TAG_METERING_MODE
public static final int TAG_LIGHT_SOURCE
public static final int TAG_WHITE_BALANCE
public static final int TAG_FLASH
public static final int TAG_FOCAL_LENGTH
public static final int TAG_USER_COMMENT
public static final int TAG_SUBSECOND_TIME
public static final int TAG_SUBSECOND_TIME_ORIGINAL
public static final int TAG_SUBSECOND_TIME_DIGITIZED
public static final int TAG_FLASHPIX_VERSION
public static final int TAG_COLOR_SPACE
public static final int TAG_EXIF_IMAGE_WIDTH
public static final int TAG_EXIF_IMAGE_HEIGHT
public static final int TAG_RELATED_SOUND_FILE
public static final int TAG_FOCAL_PLANE_X_RES
public static final int TAG_FOCAL_PLANE_Y_RES
public static final int TAG_FOCAL_PLANE_UNIT
public static final int TAG_EXPOSURE_INDEX
public static final int TAG_SENSING_METHOD
public static final int TAG_FILE_SOURCE
public static final int TAG_SCENE_TYPE
public static final int TAG_CFA_PATTERN
public static final int TAG_CUSTOM_RENDERED
public static final int TAG_EXPOSURE_MODE
public static final int TAG_WHITE_BALANCE_MODE
public static final int TAG_DIGITAL_ZOOM_RATIO
public static final int TAG_35MM_FILM_EQUIV_FOCAL_LENGTH
public static final int TAG_SCENE_CAPTURE_TYPE
public static final int TAG_GAIN_CONTROL
public static final int TAG_CONTRAST
public static final int TAG_SATURATION
public static final int TAG_SHARPNESS
public static final int TAG_DEVICE_SETTING_DESCRIPTION
public static final int TAG_SUBJECT_DISTANCE_RANGE
public static final int TAG_WIN_TITLE
public static final int TAG_WIN_COMMENT
public static final int TAG_WIN_AUTHOR
public static final int TAG_WIN_KEYWORDS
public static final int TAG_WIN_SUBJECT
public static final int TAG_IMAGE_UNIQUE_ID
public static final int TAG_THUMBNAIL_IMAGE_WIDTH
public static final int TAG_THUMBNAIL_IMAGE_HEIGHT
public static final int TAG_THUMBNAIL_DATA
public static final int TAG_FILL_ORDER
public static final int TAG_DOCUMENT_NAME
protected static final HashMap tagNameMap
Constructor Detail |
---|
public ExifDirectory()
Method Detail |
---|
public String getName()
Directory
Exif
getName
in class Directory
protected HashMap getTagNameMap()
Directory
getTagNameMap
in class Directory
public byte[] getThumbnailData() throws MetadataException
MetadataException
public void writeThumbnail(String filename) throws MetadataException, IOException
MetadataException
IOException
public boolean containsThumbnail()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |