TiffDataType
Inheritance: java.lang.Object
All Implemented Interfaces: java.lang.Comparable
public abstract class TiffDataType implements Comparable<TiffDataType>
The tiff data type.
Methods
Method | Description |
---|---|
compareTo(TiffDataType obj) | Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. |
deepClone() | Performs a deep clone of this instance. |
equals(Object obj) | |
getAlignedDataSize() | Gets the additional data size in bytes (in case the 12 bytes is not enough to fit the tag data). |
getClass() | |
getCount() | Gets the count of elements. |
getDataSize() | Gets the additional data size in bytes (in case the 12 bytes is not enough to fit the tag data). |
getId() | Gets tag id integer representation. |
getTagId() | Gets the tag id. |
getTagType() | Gets the tag type. |
getValue() | Gets the value this data type contains. |
hashCode() | |
isPrivate_internalized() | Gets a value indicatind whether tag is private. |
isValid() | Gets a value indicating whether tag data is valid. |
notify() | |
notifyAll() | |
readTag(TiffStreamReader dataStream, long position) | Reads the tag data. |
setValue(Object value) | Sets the value this data type contains. |
toString() | Returns a System.String that represents this instance. |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) | |
writeAdditionalData(TiffStreamWriter dataStream) | Writes the additional tag data. |
writeTag(TiffStreamWriter dataStream, long additionalDataOffset) | Writes the tag data. |
compareTo(TiffDataType obj)
public int compareTo(TiffDataType obj)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | TiffDataType | An object to compare with this instance. |
Returns: int - A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance is less than obj . Zero This instance is equal to obj . Greater than zero This instance is greater than obj .
deepClone()
public TiffDataType deepClone()
Performs a deep clone of this instance.
Returns: TiffDataType - A deep clone of the current instance.
equals(Object obj)
public boolean equals(Object obj)
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object |
Returns: boolean
getAlignedDataSize()
public long getAlignedDataSize()
Gets the additional data size in bytes (in case the 12 bytes is not enough to fit the tag data).
Returns: long - The additional data size in bytes.
This is the data bytes count aligned to word boundary.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getCount()
public abstract long getCount()
Gets the count of elements.
Returns: long - The count of elements.
getDataSize()
public abstract long getDataSize()
Gets the additional data size in bytes (in case the 12 bytes is not enough to fit the tag data).
Returns: long - The additional data size in bytes.
This is exact bytes count.
getId()
public int getId()
Gets tag id integer representation.
Returns: int - The tag id integer representation
getTagId()
public int getTagId()
Gets the tag id.
Returns: int - The tag id.
getTagType()
public abstract int getTagType()
Gets the tag type.
Returns: int - The tag type.
getValue()
public abstract Object getValue()
Gets the value this data type contains.
Returns: java.lang.Object - The value.
hashCode()
public int hashCode()
Returns: int
isPrivate_internalized()
public boolean isPrivate_internalized()
Gets a value indicatind whether tag is private. Private tiff tags are tags with tag id over 32768.
Returns: boolean - true if tag data is valid; otherwise, false .
isValid()
public boolean isValid()
Gets a value indicating whether tag data is valid. The valid tag contains data which may be preserved. The invalid tag cannot be stored.
Returns: boolean - true if tag data is valid; otherwise, false .
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
readTag(TiffStreamReader dataStream, long position)
public static TiffDataType readTag(TiffStreamReader dataStream, long position)
Reads the tag data.
Parameters:
Parameter | Type | Description |
---|---|---|
dataStream | TiffStreamReader | The data stream. |
position | long | The tag position. |
Returns: TiffDataType - The read tag.
setValue(Object value)
public abstract void setValue(Object value)
Sets the value this data type contains.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Object | The value. |
toString()
public String toString()
Returns a System.String that represents this instance.
Returns: java.lang.String - A System.String that represents this instance.
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |
writeAdditionalData(TiffStreamWriter dataStream)
public abstract long writeAdditionalData(TiffStreamWriter dataStream)
Writes the additional tag data.
Parameters:
Parameter | Type | Description |
---|---|---|
dataStream | TiffStreamWriter | The data stream. |
Returns: long - The actual bytes written.
writeTag(TiffStreamWriter dataStream, long additionalDataOffset)
public void writeTag(TiffStreamWriter dataStream, long additionalDataOffset)
Writes the tag data.
Parameters:
Parameter | Type | Description |
---|---|---|
dataStream | TiffStreamWriter | The data stream. |
additionalDataOffset | long | The offset to write additional data to. |