TiffUnknownType

Inheritance: java.lang.Object, com.aspose.imaging.fileformats.tiff.TiffDataType

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.

Constructors

ConstructorDescription
TiffUnknownType(TiffStreamReader stream, int tagType, int tagId, long count, long offsetOrValue)Initializes a new instance of the TiffUnknownType class.

Methods

MethodDescription
getCount()Gets the count of elements.
getOffsetOrValue()Gets the offset value for an additional data or value itself in case count is 1.
getStream()Gets the stream to read additional data from.
getTagType()Gets the tag type.
getAdditionalDataSize(byte sizeOfTagValue)Gets the additional tag value size in bytes (in case the tag can not fit the whole tag value).
getValue()Gets or sets the value this data type contains.
setValue(Object value)Gets or sets the value this data type contains.
writeAdditionalData(TiffStreamWriter dataStream)Writes the additional tag data.
toString()Returns a System.String that represents this instance.

TiffUnknownType(TiffStreamReader stream, int tagType, int tagId, long count, long offsetOrValue)

public TiffUnknownType(TiffStreamReader stream, int tagType, int tagId, long count, long offsetOrValue)

Initializes a new instance of the TiffUnknownType class.

Parameters:

ParameterTypeDescription
streamTiffStreamReaderThe stream to read from.
tagTypeintType of the tag.
tagIdintThe tag id.
countlongThe count value.
offsetOrValuelongThe offset or value.

getCount()

public long getCount()

Gets the count of elements.

Value: The count of elements.

Returns: long

getOffsetOrValue()

public long getOffsetOrValue()

Gets the offset value for an additional data or value itself in case count is 1.

Value: The offset or value.

Returns: long

getStream()

public TiffStreamReader getStream()

Gets the stream to read additional data from.

Value: The stream to read data from.

Returns: TiffStreamReader

getTagType()

public int getTagType()

Gets the tag type.

Value: The tag type.

Returns: int

getAdditionalDataSize(byte sizeOfTagValue)

public long getAdditionalDataSize(byte sizeOfTagValue)

Gets the additional tag value size in bytes (in case the tag can not fit the whole tag value).

Parameters:

ParameterTypeDescription
sizeOfTagValuebyteSize of tag value: 4 or 8 for BigTiff.

Returns: long - The additional data size in bytes.

getValue()

public Object getValue()

Gets or sets the value this data type contains.

Returns: java.lang.Object

setValue(Object value)

public void setValue(Object value)

Gets or sets the value this data type contains.

Parameters:

ParameterTypeDescription
valuejava.lang.Object

writeAdditionalData(TiffStreamWriter dataStream)

public long writeAdditionalData(TiffStreamWriter dataStream)

Writes the additional tag data.

Parameters:

ParameterTypeDescription
dataStreamTiffStreamWriterThe data stream.

Returns: long - The actual bytes written.

toString()

public String toString()

Returns a System.String that represents this instance.

Returns: java.lang.String - A System.String that represents this instance.