Packages

 

com.aspose.cad.fileformats.tiff.tifftagtypes

Class TiffUnknownType

  • All Implemented Interfaces:
    Comparable<TiffDataType>


    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.

        Parameters:
        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
      • 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
      • 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
        Throws:
        com.aspose.ms.System.NotImplementedException - 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
        Throws:
        com.aspose.ms.System.NotImplementedException - Value: The value.
      • setValue

        public void setValue(Object value)

        Gets or sets the value this data type contains.

        Specified by:
        setValue in class TiffDataType
        Throws:
        com.aspose.ms.System.NotImplementedException - Value: The value.
      • writeAdditionalData

        public long writeAdditionalData(TiffStreamWriter dataStream)

        Writes the additional tag data.

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

        public String toString()

        Returns a System.String that represents this instance.

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