Class TiffUnknownType

  • All Implemented Interfaces:

    public final class TiffUnknownType
    extends TiffDataType

    The unknown tiff type. In case the tiff tag cannot be recognized this type is instantinated.

    Note the TiffUnknownType is not serialized back to stream.

    • Constructor Detail

      • TiffUnknownType

        public 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.
    • Method Detail

      • getCount

        public long getCount()

        Gets the count of elements.

        Value: The count of elements.
        Specified by:
        getCount in class TiffDataType
        The count of elements.
      • 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.
      • getStream

        public TiffStreamReader getStream()

        Gets the stream to read additional data from.

        Value: The stream to read data from.
      • getTagType

        public int getTagType()

        Gets the tag type.

        Value: The tag type.
        Specified by:
        getTagType in class TiffDataType
        The tag type.
      • getDataSize

        public long getDataSize()

        Gets the additional data size in bytes (in case the 12 bytes is not enough to fit the tag data).

        Specified by:
        getDataSize in class TiffDataType
        The additional data size in bytes.

        This is exact bytes count.

        Throws: - Value: The additional data size in bytes.
      • getValue

        public Object getValue()

        Gets or sets the value this data type contains.

        Specified by:
        getValue in class TiffDataType
        The value.
        Throws: - Value: The value.
      • setValue

        public void setValue(Object value)

        Gets or sets the value this data type contains.

        Specified by:
        setValue in class TiffDataType
        value - The value.
        Throws: - Value: The value.
      • writeAdditionalData

        public long writeAdditionalData(TiffStreamWriter dataStream)

        Writes the additional tag data.

        Specified by:
        writeAdditionalData in class TiffDataType
        dataStream - The data stream.
        The actual bytes written.
      • toString

        public String toString()

        Returns a System.String that represents this instance.

        toString in class TiffDataType
        A System.String that represents this instance.