Package 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.
-
-
Field Summary
Fields Modifier and Type Field Description static intTAG_RESXstatic intTAG_RESYstatic intTAG_THUMB_HEIGHTstatic intTAG_THUMB_WIDTHstatic intTAG_UNITSUnits for pixel density fields.static intTAG_VERSION
-
Constructor Summary
Constructors Constructor Description JfifDirectory()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetImageHeight()Deprecated.usegetResX()instead.intgetImageWidth()Deprecated.usegetResY()instead.java.lang.StringgetName()Provides the name of the directory, for display purposes.intgetResUnits()intgetResX()intgetResY()intgetVersion()-
Methods inherited from class com.drew.metadata.Directory
addError, containsTag, getBoolean, getBooleanObject, getByteArray, getDate, getDate, getDate, getDescription, getDouble, getDoubleObject, getErrorCount, getErrors, getFloat, getFloatObject, getInt, getIntArray, getInteger, getLong, getLongObject, getObject, getParent, getRational, getRationalArray, getString, getString, getStringArray, getStringValue, getStringValueArray, getTagCount, getTagName, getTags, hasErrors, hasTagName, isEmpty, setBoolean, setByteArray, setDate, setDescriptor, setDouble, setDoubleArray, setFloat, setFloatArray, setInt, setIntArray, setLong, setObject, setObjectArray, setParent, setRational, setRationalArray, setString, setStringArray, setStringValue, setStringValueArray, toString
-
-
-
-
Field Detail
-
TAG_VERSION
public static final int TAG_VERSION
- See Also:
- Constant Field Values
-
TAG_UNITS
public static final int TAG_UNITS
Units for pixel density fields. One of None, Pixels per Inch, Pixels per Centimetre.- See Also:
- Constant Field Values
-
TAG_RESX
public static final int TAG_RESX
- See Also:
- Constant Field Values
-
TAG_RESY
public static final int TAG_RESY
- See Also:
- Constant Field Values
-
TAG_THUMB_WIDTH
public static final int TAG_THUMB_WIDTH
- See Also:
- Constant Field Values
-
TAG_THUMB_HEIGHT
public static final int TAG_THUMB_HEIGHT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:DirectoryProvides the name of the directory, for display purposes. E.g.Exif
-
getVersion
public int getVersion() throws MetadataException- Throws:
MetadataException
-
getResUnits
public int getResUnits() throws MetadataException- Throws:
MetadataException
-
getImageWidth
@Deprecated public int getImageWidth() throws MetadataExceptionDeprecated.usegetResY()instead.- Throws:
MetadataException
-
getResY
public int getResY() throws MetadataException- Throws:
MetadataException
-
getImageHeight
@Deprecated public int getImageHeight() throws MetadataExceptionDeprecated.usegetResX()instead.- Throws:
MetadataException
-
getResX
public int getResX() throws MetadataException- Throws:
MetadataException
-
-