com.drew.metadata.jfif
Class JfifDirectory

java.lang.Object
  extended by com.drew.metadata.Directory
      extended by 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

Field Summary
protected static HashMap<Integer,String> _tagNameMap
           
static int TAG_JFIF_RESX
           
static int TAG_JFIF_RESY
           
static int TAG_JFIF_UNITS
          Units for pixel density fields.
static int TAG_JFIF_VERSION
           
 
Fields inherited from class com.drew.metadata.Directory
_definedTagList, _descriptor, _tagMap
 
Constructor Summary
JfifDirectory()
           
 
Method Summary
 int getImageHeight()
           
 int getImageWidth()
           
 String getName()
          Provides the name of the directory, for display purposes.
 int getResUnits()
           
protected  HashMap<Integer,String> getTagNameMap()
          Provides the map of tag names, hashed by tag type identifier.
 int getVersion()
           
 
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

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
Constructor Detail

JfifDirectory

public JfifDirectory()
Method Detail

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.