it.tidalwave.imageio.tiff
Class TIFFTag

java.lang.Object
  extended by it.tidalwave.imageio.raw.AbstractTag
      extended by it.tidalwave.imageio.tiff.TIFFTag
All Implemented Interfaces:
java.io.Serializable

public class TIFFTag
extends AbstractTag

This class represents a TIFF tag and is able to read from an IFD block.

Version:
CVS $Id: TIFFTag.java,v 1.2 2006/02/08 20:26:54 fabriziogiudici Exp $
Author:
Fabrizio Giudici
See Also:
Serialized Form

Field Summary
static short TYPE_ASCII
           
static short TYPE_BYTE
           
static short TYPE_DOUBLE
           
static short TYPE_FLOAT
           
static short TYPE_LONG
           
static short TYPE_RATIONAL
           
static short TYPE_SBYTE
           
static short TYPE_SHORT
           
static short TYPE_SLONG
           
static short TYPE_SRATIONAL
           
static short TYPE_SSHORT
           
static short TYPE_UNDEFINED
           
 
Fields inherited from class it.tidalwave.imageio.raw.AbstractTag
asciiValue, code, floatValue, intValue, rationalValue, registry, type, undefinedValue, valuesCount
 
Constructor Summary
TIFFTag(TagRegistry registry, int code)
          Creates an TIFFTag in a registry given s numeric code.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Object getValue()
          Returns the value(s) contained in this tag as the most pertinent type.
 void read(javax.imageio.stream.ImageInputStream iis)
          Reads this tag from a stream according to the TIFF format.
 java.lang.String toString()
           
 
Methods inherited from class it.tidalwave.imageio.raw.AbstractTag
appendValues, getASCIIValue, getByteValues, getCode, getFloatValues, getIntValues, getRationalValues, getType, getValuesCount, readByteValues, readIntValues, readShortValues
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_BYTE

public static final short TYPE_BYTE
See Also:
Constant Field Values

TYPE_ASCII

public static final short TYPE_ASCII
See Also:
Constant Field Values

TYPE_SHORT

public static final short TYPE_SHORT
See Also:
Constant Field Values

TYPE_LONG

public static final short TYPE_LONG
See Also:
Constant Field Values

TYPE_RATIONAL

public static final short TYPE_RATIONAL
See Also:
Constant Field Values

TYPE_SBYTE

public static final short TYPE_SBYTE
See Also:
Constant Field Values

TYPE_UNDEFINED

public static final short TYPE_UNDEFINED
See Also:
Constant Field Values

TYPE_SSHORT

public static final short TYPE_SSHORT
See Also:
Constant Field Values

TYPE_SLONG

public static final short TYPE_SLONG
See Also:
Constant Field Values

TYPE_SRATIONAL

public static final short TYPE_SRATIONAL
See Also:
Constant Field Values

TYPE_FLOAT

public static final short TYPE_FLOAT
See Also:
Constant Field Values

TYPE_DOUBLE

public static final short TYPE_DOUBLE
See Also:
Constant Field Values
Constructor Detail

TIFFTag

public TIFFTag(TagRegistry registry,
               int code)
Creates an TIFFTag in a registry given s numeric code.

Parameters:
registry - the registry this tag belongs to
code - the code
Method Detail

getValue

public java.lang.Object getValue()
Description copied from class: AbstractTag
Returns the value(s) contained in this tag as the most pertinent type.

Overrides:
getValue in class AbstractTag
Returns:
the value

read

public void read(javax.imageio.stream.ImageInputStream iis)
          throws java.io.IOException
Reads this tag from a stream according to the TIFF format.

Parameters:
iis - the input stream
Throws:
java.io.IOException - if an I/O error ocfurs

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object