|
||||||||||
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.ExifThumbnailDirectory
public class ExifThumbnailDirectory
One of several Exif directories. Otherwise known as IFD1, this directory holds information about an embedded thumbnail image.
Field Summary | |
---|---|
protected static HashMap<Integer,String> |
_tagNameMap
|
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_ORIENTATION
|
static int |
TAG_PHOTOMETRIC_INTERPRETATION
Shows the color space of the image data components. |
static int |
TAG_PLANAR_CONFIGURATION
|
static int |
TAG_REFERENCE_BLACK_WHITE
|
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_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_THUMBNAIL_COMPRESSION
Shows compression method for Thumbnail. |
static int |
TAG_THUMBNAIL_IMAGE_HEIGHT
|
static int |
TAG_THUMBNAIL_IMAGE_WIDTH
|
static int |
TAG_THUMBNAIL_LENGTH
The size of the thumbnail image data in bytes. |
static int |
TAG_THUMBNAIL_OFFSET
The offset to thumbnail image bytes. |
static int |
TAG_X_RESOLUTION
When image format is no compression YCbCr, this value shows byte aligns of YCbCr data. |
static int |
TAG_Y_RESOLUTION
|
static int |
TAG_YCBCR_COEFFICIENTS
|
static int |
TAG_YCBCR_POSITIONING
|
static int |
TAG_YCBCR_SUBSAMPLING
|
Fields inherited from class com.drew.metadata.Directory |
---|
_definedTagList, _descriptor, _tagMap |
Constructor Summary | |
---|---|
ExifThumbnailDirectory()
|
Method Summary | |
---|---|
String |
getName()
Provides the name of the directory, for display purposes. |
protected HashMap<Integer,String> |
getTagNameMap()
Provides the map of tag names, hashed by tag type identifier. |
byte[] |
getThumbnailData()
|
boolean |
hasThumbnailData()
|
void |
setThumbnailData(byte[] data)
|
void |
writeThumbnail(String filename)
|
Methods inherited from class com.drew.metadata.Directory |
---|
addError, containsTag, getBoolean, getBooleanObject, getByteArray, getDate, getDate, getDescription, getDouble, getDoubleObject, getErrorCount, getErrors, getFloat, getFloatObject, getInt, getIntArray, getInteger, getLong, getLongObject, getObject, getRational, getRationalArray, getString, getString, getStringArray, getTagCount, getTagName, getTags, hasErrors, setBoolean, setByteArray, setDate, setDescriptor, setDouble, setDoubleArray, setFloat, setFloatArray, 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_THUMBNAIL_IMAGE_WIDTH
public static final int TAG_THUMBNAIL_IMAGE_HEIGHT
public static final int TAG_BITS_PER_SAMPLE
public static final int TAG_THUMBNAIL_COMPRESSION
public static final int TAG_PHOTOMETRIC_INTERPRETATION
public static final int TAG_STRIP_OFFSETS
public static final int TAG_ORIENTATION
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_X_RESOLUTION
public static final int TAG_Y_RESOLUTION
public static final int TAG_PLANAR_CONFIGURATION
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_COEFFICIENTS
public static final int TAG_YCBCR_SUBSAMPLING
public static final int TAG_YCBCR_POSITIONING
public static final int TAG_REFERENCE_BLACK_WHITE
protected static final HashMap<Integer,String> _tagNameMap
Constructor Detail |
---|
public ExifThumbnailDirectory()
Method Detail |
---|
public String getName()
Directory
Exif
getName
in class Directory
protected HashMap<Integer,String> getTagNameMap()
Directory
getTagNameMap
in class Directory
public boolean hasThumbnailData()
public byte[] getThumbnailData()
public void setThumbnailData(byte[] data)
public void writeThumbnail(String filename) throws MetadataException, IOException
MetadataException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |