public final class TiffUnknownType extends TiffDataType
The unknown tiff type. In case the tiff tag cannot be recognized this type is instanced.
Note the TiffUnknownType is not serialized back to stream.
| Constructor and Description |
|---|
TiffUnknownType(TiffStreamReader stream,
int tagType,
int tagId,
long count,
long offsetOrValue)
Initializes a new instance of the
TiffUnknownType class. |
| Modifier and Type | Method and Description |
|---|---|
long |
getAdditionalDataSize(byte sizeOfTagValue)
Gets the additional tag value size in bytes (in case the tag can not fit the whole tag value).
|
long |
getCount()
Gets the count of elements.
|
long |
getOffsetOrValue()
Gets the offset value for an additional data or value itself in case count is 1.
|
TiffStreamReader |
getStream()
Gets the stream to read additional data from.
|
int |
getTagType()
Gets the tag type.
|
Object |
getValue()
Gets or sets the value this data type contains.
|
void |
setValue(Object value)
Gets or sets the value this data type contains.
|
String |
toString()
Returns a
System.String that represents this instance. |
long |
writeAdditionalData(TiffStreamWriter dataStream)
Writes the additional tag data.
|
compareTo, deepClone, equals, getAlignedDataSize, getDataSize, getElementSize, getId, getTagId, hashCode, isValid, readTag, writeTagpublic TiffUnknownType(TiffStreamReader stream, int tagType, int tagId, long count, long offsetOrValue)
Initializes a new instance of the TiffUnknownType class.
stream - The stream to read from.tagType - Type of the tag.tagId - The tag id.count - The count value.offsetOrValue - The offset or value.com.aspose.ms.System.IO.InvalidDataException - Tiff tag value exceeds data length.public long getCount()
Gets the count of elements.
Value: The count of elements.getCount in class TiffDataTypepublic long getOffsetOrValue()
Gets the offset value for an additional data or value itself in case count is 1.
Value: The offset or value.public TiffStreamReader getStream()
Gets the stream to read additional data from.
Value: The stream to read data from.public int getTagType()
Gets the tag type.
Value: The tag type.getTagType in class TiffDataTypepublic long getAdditionalDataSize(byte sizeOfTagValue)
Gets the additional tag value size in bytes (in case the tag can not fit the whole tag value).
getAdditionalDataSize in class TiffDataTypesizeOfTagValue - Size of tag value: 4 or 8 for BigTiff.com.aspose.ms.System.NotImplementedException - Not implementedpublic Object getValue()
Gets or sets the value this data type contains.
getValue in class TiffDataTypecom.aspose.ms.System.NotImplementedException - Value:
The value.public void setValue(Object value)
Gets or sets the value this data type contains.
setValue in class TiffDataTypevalue - The value.com.aspose.ms.System.NotImplementedException - Value:
The value.public long writeAdditionalData(TiffStreamWriter dataStream)
Writes the additional tag data.
writeAdditionalData in class TiffDataTypedataStream - The data stream.public String toString()
Returns a System.String that represents this instance.
toString in class TiffDataTypeSystem.String that represents this instance.Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.