Package gov.nih.mipav.model.file
Class MetadataExtractor.JfifDirectory
- java.lang.Object
-
- gov.nih.mipav.model.file.MetadataExtractor.Directory
-
- gov.nih.mipav.model.file.MetadataExtractor.JfifDirectory
-
- Enclosing class:
- MetadataExtractor
public class MetadataExtractor.JfifDirectory extends MetadataExtractor.Directory
Directory of tags and values for the SOF0 Jfif segment. This segment holds basic metadata about the image.- Author:
- Yuri Binev, Drew Noakes
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.HashMap<java.lang.Integer,java.lang.String>
_tagNameMap
static int
TAG_RESX
static int
TAG_RESY
static int
TAG_THUMB_HEIGHT
static int
TAG_THUMB_WIDTH
static int
TAG_UNITS
Units for pixel density fields.static int
TAG_VERSION
-
Fields inherited from class gov.nih.mipav.model.file.MetadataExtractor.Directory
_definedTagList, _descriptor, _tagMap
-
-
Constructor Summary
Constructors Constructor Description JfifDirectory()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
getImageHeight()
Deprecated.usegetResX()
instead.int
getImageWidth()
Deprecated.usegetResY()
instead.java.lang.String
getName()
Provides the name of the directory, for display purposes.int
getResUnits()
int
getResX()
int
getResY()
protected java.util.HashMap<java.lang.Integer,java.lang.String>
getTagNameMap()
Provides the map of tag names, hashed by tag type identifier.int
getVersion()
-
Methods inherited from class gov.nih.mipav.model.file.MetadataExtractor.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
-
_tagNameMap
private final java.util.HashMap<java.lang.Integer,java.lang.String> _tagNameMap
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:MetadataExtractor.Directory
Provides the name of the directory, for display purposes. E.g.Exif
- Specified by:
getName
in classMetadataExtractor.Directory
- Returns:
- the name of the directory
-
getTagNameMap
protected java.util.HashMap<java.lang.Integer,java.lang.String> getTagNameMap()
Description copied from class:MetadataExtractor.Directory
Provides the map of tag names, hashed by tag type identifier.- Specified by:
getTagNameMap
in classMetadataExtractor.Directory
- Returns:
- the map of tag names
-
getVersion
public int getVersion() throws MetadataExtractor.MetadataException
-
getResUnits
public int getResUnits() throws MetadataExtractor.MetadataException
-
getImageWidth
@Deprecated public int getImageWidth() throws MetadataExtractor.MetadataException
Deprecated.usegetResY()
instead.
-
getResY
public int getResY() throws MetadataExtractor.MetadataException
-
getImageHeight
@Deprecated public int getImageHeight() throws MetadataExtractor.MetadataException
Deprecated.usegetResX()
instead.
-
getResX
public int getResX() throws MetadataExtractor.MetadataException
-
-