com.drew.metadata.jfif
Class JfifDirectory
java.lang.Object
com.drew.metadata.Directory
com.drew.metadata.jfif.JfifDirectory
public class JfifDirectory
- extends Directory
Directory of tags and values for the SOF0 Jfif segment. This segment holds basic metadata about the image.
- Author:
- Yuri Binev, Drew Noakes
| 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 |
TAG_JFIF_VERSION
public static final int TAG_JFIF_VERSION
- See Also:
- Constant Field Values
TAG_JFIF_UNITS
public static final int TAG_JFIF_UNITS
- Units for pixel density fields. One of None, Pixels per Inch, Pixels per Centimetre.
- See Also:
- Constant Field Values
TAG_JFIF_RESX
public static final int TAG_JFIF_RESX
- See Also:
- Constant Field Values
TAG_JFIF_RESY
public static final int TAG_JFIF_RESY
- See Also:
- Constant Field Values
_tagNameMap
protected static final HashMap<Integer,String> _tagNameMap
JfifDirectory
public JfifDirectory()
getName
public String getName()
- Description copied from class:
Directory
- Provides the name of the directory, for display purposes. E.g.
Exif
- Specified by:
getName in class Directory
- Returns:
- the name of the directory
getTagNameMap
protected HashMap<Integer,String> getTagNameMap()
- Description copied from class:
Directory
- Provides the map of tag names, hashed by tag type identifier.
- Specified by:
getTagNameMap in class Directory
- Returns:
- the map of tag names
getVersion
public int getVersion()
throws MetadataException
- Throws:
MetadataException
getResUnits
public int getResUnits()
throws MetadataException
- Throws:
MetadataException
getImageWidth
public int getImageWidth()
throws MetadataException
- Throws:
MetadataException
getImageHeight
public int getImageHeight()
throws MetadataException
- Throws:
MetadataException
Copyright © 2012. All Rights Reserved.