public abstract class TiffDataType extends Object implements Comparable
The tiff data type.
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object 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.
|
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 or sets the value this data type contains.
|
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)
Gets or sets the value this data type contains.
|
String |
toString()
Returns a
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.
Value: The count of elements.public final int getId()
Gets tag id integer representation.
public final int getTagId()
Gets the tag id.
Value: The tag id.public abstract int getTagType()
Gets the tag type.
Value: The tag type.public final long getAlignedDataSize()
Gets the additional data size in bytes (in case the 12 bytes is not enough to fit the tag data).
Value: The additional data size in bytes.public abstract long getDataSize()
Gets the additional data size in bytes (in case the 12 bytes is not enough to fit the tag data).
Value: The additional data size in bytes.public abstract Object getValue()
Gets or sets the value this data type contains.
Value: The value.public abstract void setValue(Object value)
Gets or sets the value this data type contains.
Value: The value.public final 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.
Value: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 final int compareTo(Object 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.
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 final 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.Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.