|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.tidalwave.imageio.raw.AbstractTag
public abstract class AbstractTag
This class represents an abstract tag, which is an aggregate of a numeric code,
a type and a value. The value can be an integer, a short, a byte, a float or
a rational; can be of any multiplicity. The detailed meaning of the type is
not specified and demanded to concrete subclasses.
This class provides some protected readXXX() methods to read data
from an image stream.
| Field Summary | |
|---|---|
protected java.lang.String |
asciiValue
The values as an ASCII string. |
protected int |
code
The numerical tag code. |
protected float[] |
floatValue
The values as floats. |
protected int[] |
intValue
The values as integers. |
protected TagRational[] |
rationalValue
The values as rationals. |
protected TagRegistry |
registry
The registry this tag belongs to. |
protected int |
type
The type of this tag. |
protected byte[] |
undefinedValue
The values as bytes. |
protected int |
valuesCount
The number of contained values. |
| Constructor Summary | |
|---|---|
AbstractTag(TagRegistry registry,
int code)
Creates an AbstractTag in a registry given s numeric code. |
|
| Method Summary | |
|---|---|
protected void |
appendValues(java.lang.StringBuffer buffer)
Appends the contained value(s) to the given StringBuffer. |
java.lang.String |
getASCIIValue()
Returns the value as an ASCII string. |
byte[] |
getByteValues()
Returns the value as bytes. |
int |
getCode()
Returns the numeric code of this tag. |
float[] |
getFloatValues()
Returns the value as floats. |
int[] |
getIntValues()
Returns the value as integers. |
TagRational[] |
getRationalValues()
Returns the value as rationals. |
int |
getType()
Return the type of values contained in this tag. |
java.lang.Object |
getValue()
Returns the value(s) contained in this tag as the most pertinent type. |
int |
getValuesCount()
Returns the count of values in this tag. |
protected int[] |
readByteValues(javax.imageio.stream.ImageInputStream iis,
long valueOffset,
int valuesCount)
Reads byte values from the given image input stream. |
protected int[] |
readIntValues(javax.imageio.stream.ImageInputStream iis,
long valueOffset,
int valuesCount)
Reads integer values from the given image input stream. |
protected int[] |
readShortValues(javax.imageio.stream.ImageInputStream iis,
long valueOffset,
int valuesCount)
Reads short values from the given image input stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient TagRegistry registry
protected int code
protected int type
protected int valuesCount
protected byte[] undefinedValue
protected int[] intValue
protected TagRational[] rationalValue
protected float[] floatValue
protected java.lang.String asciiValue
| Constructor Detail |
|---|
public AbstractTag(TagRegistry registry,
int code)
AbstractTag in a registry given s numeric code.
registry - the registry this tag belongs tocode - the code| Method Detail |
|---|
public int getCode()
public int getType()
public int getValuesCount()
public java.lang.Object getValue()
public byte[] getByteValues()
public int[] getIntValues()
public float[] getFloatValues()
public TagRational[] getRationalValues()
public java.lang.String getASCIIValue()
protected int[] readIntValues(javax.imageio.stream.ImageInputStream iis,
long valueOffset,
int valuesCount)
throws java.io.IOException
iis - the stream to read fromvalueOffset - the offset to read atvaluesCount - the number of values to read
java.io.IOException - if a I/O error occurs
protected int[] readShortValues(javax.imageio.stream.ImageInputStream iis,
long valueOffset,
int valuesCount)
throws java.io.IOException
iis - the stream to read fromvalueOffset - the offset to read atvaluesCount - the number of values to read
java.io.IOException - if a I/O error occurs
protected int[] readByteValues(javax.imageio.stream.ImageInputStream iis,
long valueOffset,
int valuesCount)
throws java.io.IOException
iis - the stream to read fromvalueOffset - the offset to read atvaluesCount - the number of values to read
java.io.IOException - if a I/O error occursprotected void appendValues(java.lang.StringBuffer buffer)
StringBuffer. This
method is used by Object.toString().
buffer - buffer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||