com.drew.metadata.photoshop
Class PsdHeaderDirectory

java.lang.Object
  extended by com.drew.metadata.Directory
      extended by com.drew.metadata.photoshop.PsdHeaderDirectory

public class PsdHeaderDirectory
extends Directory

Holds the basic metadata found in the header of a Photoshop PSD file.

Author:
Drew Noakes http://drewnoakes.com

Field Summary
protected static HashMap<Integer,String> _tagNameMap
           
static int TAG_BITS_PER_CHANNEL
          The number of bits per channel.
static int TAG_CHANNEL_COUNT
          The number of channels in the image, including any alpha channels.
static int TAG_COLOR_MODE
          The color mode of the file.
static int TAG_IMAGE_HEIGHT
          The height of the image in pixels.
static int TAG_IMAGE_WIDTH
          The width of the image in pixels.
 
Fields inherited from class com.drew.metadata.Directory
_definedTagList, _descriptor, _tagMap
 
Constructor Summary
PsdHeaderDirectory()
           
 
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.
 
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_CHANNEL_COUNT

public static final int TAG_CHANNEL_COUNT
The number of channels in the image, including any alpha channels. Supported range is 1 to 56.

See Also:
Constant Field Values

TAG_IMAGE_HEIGHT

public static final int TAG_IMAGE_HEIGHT
The height of the image in pixels.

See Also:
Constant Field Values

TAG_IMAGE_WIDTH

public static final int TAG_IMAGE_WIDTH
The width of the image in pixels.

See Also:
Constant Field Values

TAG_BITS_PER_CHANNEL

public static final int TAG_BITS_PER_CHANNEL
The number of bits per channel. Supported values are 1, 8, 16 and 32.

See Also:
Constant Field Values

TAG_COLOR_MODE

public static final int TAG_COLOR_MODE
The color mode of the file. Supported values are: Bitmap = 0; Grayscale = 1; Indexed = 2; RGB = 3; CMYK = 4; Multichannel = 7; Duotone = 8; Lab = 9.

See Also:
Constant Field Values

_tagNameMap

protected static final HashMap<Integer,String> _tagNameMap
Constructor Detail

PsdHeaderDirectory

public PsdHeaderDirectory()
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


Copyright © 2012. All Rights Reserved.