public abstract class TiffDataType extends Object implements Comparable<TiffDataType>
The tiff data type.
Modifier and Type | Method and Description |
---|---|
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.
|
TiffDataType |
deepClone()
Performs a deep clone of this instance.
|
boolean |
equals(Object obj) |
long |
getAlignedDataSize()
Gets the additional data size in bytes (in case the 12 bytes is not enough to fit the tag data).
|
abstract long |
getCount()
Gets the count of elements.
|
abstract long |
getDataSize()
Gets the additional data size in bytes (in case the 12 bytes is not enough to fit the tag data).
|
int |
getId()
Gets tag id integer representation.
|
int |
getTagId()
Gets the tag id.
|
abstract int |
getTagType()
Gets the tag type.
|
abstract Object |
getValue()
Gets the value this data type contains.
|
int |
hashCode() |
boolean |
isValid()
Gets a value indicating whether tag data is valid.
|
static TiffDataType |
readTag(TiffStreamReader dataStream,
long position)
Reads the tag data.
|
abstract void |
setValue(Object value)
Sets the value this data type contains.
|
String |
toString()
Returns a
System.String that represents this instance. |
abstract long |
writeAdditionalData(TiffStreamWriter dataStream)
Writes the additional tag data.
|
void |
writeTag(TiffStreamWriter dataStream,
long additionalDataOffset)
Writes the tag data.
|
public abstract long getCount()
Gets the count of elements.
public int getId()
Gets tag id integer representation.
public int getTagId()
Gets the tag id.
public abstract int getTagType()
Gets the tag type.
public long getAlignedDataSize()
Gets the additional data size in bytes (in case the 12 bytes is not enough to fit the tag data).
This is the data bytes count aligned to word boundary.
public abstract long getDataSize()
Gets the additional data size in bytes (in case the 12 bytes is not enough to fit the tag data).
This is exact bytes count.
public abstract Object getValue()
Gets the value this data type contains.
public abstract void setValue(Object value)
Sets the value this data type contains.
value
- The value.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.
true
if tag data is valid; otherwise, false
.public static TiffDataType readTag(TiffStreamReader dataStream, long position)
Reads the tag data.
dataStream
- The data stream.position
- The tag position.com.aspose.ms.System.ArgumentNullException
- dataStreampublic 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.
compareTo
in interface Comparable<TiffDataType>
obj
- An object to compare with this instance.obj
.
Zero
This instance is equal to obj
.
Greater than zero
This instance is greater than obj
.TiffImageException
- Expected TiffDataType type.public TiffDataType deepClone()
Performs a deep clone of this instance.
public void writeTag(TiffStreamWriter dataStream, long additionalDataOffset)
Writes the tag data.
dataStream
- The data stream.additionalDataOffset
- The offset to write additional data to.ImageSaveException
- Unable to Write values for + this.TagType + Message : + exception.Messagepublic abstract long writeAdditionalData(TiffStreamWriter dataStream)
Writes the additional tag data.
dataStream
- The data stream.