Packages

 

com.aspose.cad.fileformats.tiff.tifftagtypes

Class TiffASCIIType

  • All Implemented Interfaces:
    Comparable


    public final class TiffASCIIType
    extends TiffDataType

    The tiff ascii type.

    • Constructor Detail

      • TiffASCIIType

        public TiffASCIIType(int tagId)

        Initializes a new instance of the TiffASCIIType class.

        Parameters:
        tagId - The tag id.
    • Method Detail

      • getText

        public String getText()

        Gets or sets the text.

        Returns:
        The text.
      • setText

        public void setText(String value)

        Gets or sets the text.

        Parameters:
        value - The text.
      • getCount

        public long getCount()

        Gets the count of elements.

        Specified by:
        getCount in class TiffDataType
        Returns:
        The count of elements.
      • getTagType

        public int getTagType()

        Gets the tag type.

        Specified by:
        getTagType in class TiffDataType
        Returns:
        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
        Returns:
        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
        Returns:
        The value.
        Throws:
        com.aspose.ms.System.ArgumentException - Only string is supported.
      • setValue

        public void setValue(Object value)

        Gets or sets the value this data type contains.

        Specified by:
        setValue in class TiffDataType
        Parameters:
        value - The value.
        Throws:
        com.aspose.ms.System.ArgumentException - Only string is supported.
      • 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.