it.tidalwave.imageio.crw
Class CIFFTag

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

public class CIFFTag
extends AbstractTag

Version:
CVS $Id: CIFFTag.java,v 1.2 2006/02/08 19:49:01 fabriziogiudici Exp $
Author:
Fabrizio Giudici
See Also:
Serialized Form

Field Summary
 
Fields inherited from class it.tidalwave.imageio.raw.AbstractTag
asciiValue, code, floatValue, intValue, rationalValue, registry, type, undefinedValue, valuesCount
 
Constructor Summary
CIFFTag(TagRegistry registry, int code, int baseOffset)
           
 
Method Summary
 int getBaseOffset()
          Returns the base offset of this tag
 int getOffset()
          Returns the offset of this tag.
 int getSize()
          Returns the size of this tag
 boolean isSubDirectory()
          Return true if this tag is a sub-directory.
 void read(javax.imageio.stream.ImageInputStream iis)
          Reads this tag from a stream starting at the current position.
 java.lang.String toString()
           
 
Methods inherited from class it.tidalwave.imageio.raw.AbstractTag
appendValues, getASCIIValue, getByteValues, getCode, getFloatValues, getIntValues, getRationalValues, getType, getValue, getValuesCount, readByteValues, readIntValues, readShortValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CIFFTag

public CIFFTag(TagRegistry registry,
               int code,
               int baseOffset)
Parameters:
registry -
code -
Method Detail

getSize

public int getSize()
Returns the size of this tag

Returns:
the size

getOffset

public int getOffset()
Returns the offset of this tag.

Returns:
the offset

getBaseOffset

public int getBaseOffset()
Returns the base offset of this tag

Returns:
the base offset

isSubDirectory

public boolean isSubDirectory()
Return true if this tag is a sub-directory.

Returns:
true if it's a subdirectory

read

public void read(javax.imageio.stream.ImageInputStream iis)
          throws java.io.IOException
Reads this tag from a stream starting at the current position.

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

toString

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