TiffStreamWriter

Inheritance: java.lang.Object, com.aspose.fileformats.fileformats.tiff.filemanagement.TiffStreamSeeker

All Implemented Interfaces: com.aspose.internal.interfaces.ISynchronizable

public class TiffStreamWriter extends TiffStreamSeeker implements ISynchronizable

The Tiff stream writer.

Constructors

ConstructorDescription
TiffStreamWriter(StreamContainer writer)Initializes a new instance of the TiffStreamWriter class.

Methods

MethodDescription
getSyncRoot()Gets an object that can be used to synchronize access to the synchronized resource.
getPosition()Gets or sets the stream position.
setPosition(long value)Gets or sets the stream position.
write(byte[] data, int offset, int dataLength)Writes the specified data.
write(byte[] data)Writes the specified data.
writeDouble(double data)Writes a single double value to the stream.
writeDoubleArray(double[] data)Writes an array of double values to the stream.
writeFloat(float data)Writes a single float value to the stream.
writeFloatArray(float[] data)Writes an array of float values to the stream.
writeRational(TiffRational data)Writes a single rational number value to the stream.
writeSRational(TiffSRational data)Writes a single signed rational number value to the stream.
writeRationalArray(TiffRational[] data)Writes an array of unsigned rational values to the stream.
writeSRationalArray(TiffSRational[] data)Writes an array of signed rational values to the stream.
writeSByte(byte data)Writes a single signed byte value to the stream.
writeSByteArray(byte[] data)Writes an array of signed byte values to the stream.
writeIntArray(int[] data)Writes an array of integer values to the stream.
writeSShort(short data)Writes a single short value to the stream.
writeSShortArray(short[] data)Writes an array of short values to the stream.
writeSInt(int data)Writes a single integer value to the stream.
writeUByte(byte data)Writes a single byte value to the stream.
writeUInt(long data)Writes a single unsigned integer value to the stream.
writeUIntArray(long[] data)Writes an array of unsigned integer values to the stream.
writeUShort(int data)Writes a single unsigned short value to the stream.
writeUShortArray(int[] data)Writes an array of unsigned short values to the stream.
writeSLong(long data)Writes an array of signed long values to the stream.
writeSLongArray(long[] data)Writes an array of signed long values to the stream.
writeULong(long data)Writes an array of unsigned long values to the stream.
writeULongArray(long[] data)Writes an array of unsigned long values to the stream.

TiffStreamWriter(StreamContainer writer)

public TiffStreamWriter(StreamContainer writer)

Initializes a new instance of the TiffStreamWriter class.

Parameters:

ParameterTypeDescription
writerStreamContainerThe stream writer.

getSyncRoot()

public Object getSyncRoot()

Gets an object that can be used to synchronize access to the synchronized resource.

Value: The object that can be used to synchronize access to the synchronized resource.

Returns: java.lang.Object

getPosition()

public long getPosition()

Gets or sets the stream position.

Value: The stream position.

Returns: long

setPosition(long value)

public void setPosition(long value)

Gets or sets the stream position.

Value: The stream position.

Parameters:

ParameterTypeDescription
valuelong

write(byte[] data, int offset, int dataLength)

public void write(byte[] data, int offset, int dataLength)

Writes the specified data.

Parameters:

ParameterTypeDescription
databyte[]The data to write.
offsetintThe data offset.
dataLengthintLength of the data to writer.

write(byte[] data)

public void write(byte[] data)

Writes the specified data.

Parameters:

ParameterTypeDescription
databyte[]The data to write.

writeDouble(double data)

public void writeDouble(double data)

Writes a single double value to the stream.

Parameters:

ParameterTypeDescription
datadoubleThe value to write.

writeDoubleArray(double[] data)

public void writeDoubleArray(double[] data)

Writes an array of double values to the stream.

Parameters:

ParameterTypeDescription
datadouble[]The array to write.

writeFloat(float data)

public void writeFloat(float data)

Writes a single float value to the stream.

Parameters:

ParameterTypeDescription
datafloatThe value to write.

writeFloatArray(float[] data)

public void writeFloatArray(float[] data)

Writes an array of float values to the stream.

Parameters:

ParameterTypeDescription
datafloat[]The array to write.

writeRational(TiffRational data)

public void writeRational(TiffRational data)

Writes a single rational number value to the stream.

Parameters:

ParameterTypeDescription
dataTiffRationalThe value to write.

writeSRational(TiffSRational data)

public void writeSRational(TiffSRational data)

Writes a single signed rational number value to the stream.

Parameters:

ParameterTypeDescription
dataTiffSRationalThe value to write.

writeRationalArray(TiffRational[] data)

public void writeRationalArray(TiffRational[] data)

Writes an array of unsigned rational values to the stream.

Parameters:

ParameterTypeDescription
dataTiffRational[]The array to write.

writeSRationalArray(TiffSRational[] data)

public void writeSRationalArray(TiffSRational[] data)

Writes an array of signed rational values to the stream.

Parameters:

ParameterTypeDescription
dataTiffSRational[]The array to write.

writeSByte(byte data)

public void writeSByte(byte data)

Writes a single signed byte value to the stream.

Parameters:

ParameterTypeDescription
databyteThe value to write.

writeSByteArray(byte[] data)

public void writeSByteArray(byte[] data)

Writes an array of signed byte values to the stream.

Parameters:

ParameterTypeDescription
databyte[]The array to write.

writeIntArray(int[] data)

public void writeIntArray(int[] data)

Writes an array of integer values to the stream.

Parameters:

ParameterTypeDescription
dataint[]The array to write.

writeSShort(short data)

public void writeSShort(short data)

Writes a single short value to the stream.

Parameters:

ParameterTypeDescription
datashortThe value to write.

writeSShortArray(short[] data)

public void writeSShortArray(short[] data)

Writes an array of short values to the stream.

Parameters:

ParameterTypeDescription
datashort[]The array to write.

writeSInt(int data)

public void writeSInt(int data)

Writes a single integer value to the stream.

Parameters:

ParameterTypeDescription
dataintThe value to write.

writeUByte(byte data)

public void writeUByte(byte data)

Writes a single byte value to the stream.

Parameters:

ParameterTypeDescription
databyteThe value to write.

writeUInt(long data)

public void writeUInt(long data)

Writes a single unsigned integer value to the stream.

Parameters:

ParameterTypeDescription
datalongThe value to write.

writeUIntArray(long[] data)

public void writeUIntArray(long[] data)

Writes an array of unsigned integer values to the stream.

Parameters:

ParameterTypeDescription
datalong[]The array to write.

writeUShort(int data)

public void writeUShort(int data)

Writes a single unsigned short value to the stream.

Parameters:

ParameterTypeDescription
dataintThe value to write.

writeUShortArray(int[] data)

public void writeUShortArray(int[] data)

Writes an array of unsigned short values to the stream.

Parameters:

ParameterTypeDescription
dataint[]The array to write.

writeSLong(long data)

public final void writeSLong(long data)

Writes an array of signed long values to the stream.

Parameters:

ParameterTypeDescription
datalongThe array to write.

writeSLongArray(long[] data)

public final void writeSLongArray(long[] data)

Writes an array of signed long values to the stream.

Parameters:

ParameterTypeDescription
datalong[]The array to write.

writeULong(long data)

public final void writeULong(long data)

Writes an array of unsigned long values to the stream.

Parameters:

ParameterTypeDescription
datalongThe array to write.

writeULongArray(long[] data)

public final void writeULongArray(long[] data)

Writes an array of unsigned long values to the stream.

Parameters:

ParameterTypeDescription
datalong[]The array to write.