TiffShortType

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

public final class TiffShortType extends TiffCommonArrayType

The tiff short type.

Constructors

ConstructorDescription
TiffShortType(int tagId)Initializes a new instance of the TiffShortType class.
TiffShortType(int tagId, int[] values)Initializes a new instance of the TiffShortType class.

Methods

MethodDescription
getValues()Gets or sets the data.
setValues(int[] value)Gets or sets the data.
getElementSize()Gets the element size in bytes.
getValuesContainer()Gets the values container.
getTagType()Gets the tag type.
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.

TiffShortType(int tagId)

public TiffShortType(int tagId)

Initializes a new instance of the TiffShortType class.

Parameters:

ParameterTypeDescription
tagIdintThe tag id.

TiffShortType(int tagId, int[] values)

public TiffShortType(int tagId, int[] values)

Initializes a new instance of the TiffShortType class.

Parameters:

ParameterTypeDescription
tagIdintThe tag id.
valuesint[]

getValues()

public int[] getValues()

Gets or sets the data.

Value: The data.

Returns: int[]

setValues(int[] value)

public void setValues(int[] value)

Gets or sets the data.

Value: The data.

Parameters:

ParameterTypeDescription
valueint[]

getElementSize()

public byte getElementSize()

Gets the element size in bytes.

Value: The element size in bytes.

Returns: byte

getValuesContainer()

public System.Array getValuesContainer()

Gets the values container.

Value: The values container.

Returns: com.aspose.ms.System.Array

getTagType()

public int getTagType()

Gets the tag type.

Value: The tag type.

Returns: int

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.