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
Constructor | Description |
---|---|
TiffStreamWriter(StreamContainer writer) | Initializes a new instance of the TiffStreamWriter class. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
writer | StreamContainer | The 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:
Parameter | Type | Description |
---|---|---|
value | long |
write(byte[] data, int offset, int dataLength)
public void write(byte[] data, int offset, int dataLength)
Writes the specified data.
Parameters:
Parameter | Type | Description |
---|---|---|
data | byte[] | The data to write. |
offset | int | The data offset. |
dataLength | int | Length of the data to writer. |
write(byte[] data)
public void write(byte[] data)
Writes the specified data.
Parameters:
Parameter | Type | Description |
---|---|---|
data | byte[] | The data to write. |
writeDouble(double data)
public void writeDouble(double data)
Writes a single double value to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | double | The value to write. |
writeDoubleArray(double[] data)
public void writeDoubleArray(double[] data)
Writes an array of double values to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | double[] | The array to write. |
writeFloat(float data)
public void writeFloat(float data)
Writes a single float value to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | float | The value to write. |
writeFloatArray(float[] data)
public void writeFloatArray(float[] data)
Writes an array of float values to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | float[] | The array to write. |
writeRational(TiffRational data)
public void writeRational(TiffRational data)
Writes a single rational number value to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | TiffRational | The value to write. |
writeSRational(TiffSRational data)
public void writeSRational(TiffSRational data)
Writes a single signed rational number value to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | TiffSRational | The value to write. |
writeRationalArray(TiffRational[] data)
public void writeRationalArray(TiffRational[] data)
Writes an array of unsigned rational values to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | TiffRational[] | The array to write. |
writeSRationalArray(TiffSRational[] data)
public void writeSRationalArray(TiffSRational[] data)
Writes an array of signed rational values to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | TiffSRational[] | The array to write. |
writeSByte(byte data)
public void writeSByte(byte data)
Writes a single signed byte value to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | byte | The value to write. |
writeSByteArray(byte[] data)
public void writeSByteArray(byte[] data)
Writes an array of signed byte values to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | byte[] | The array to write. |
writeIntArray(int[] data)
public void writeIntArray(int[] data)
Writes an array of integer values to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | int[] | The array to write. |
writeSShort(short data)
public void writeSShort(short data)
Writes a single short value to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | short | The value to write. |
writeSShortArray(short[] data)
public void writeSShortArray(short[] data)
Writes an array of short values to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | short[] | The array to write. |
writeSInt(int data)
public void writeSInt(int data)
Writes a single integer value to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | int | The value to write. |
writeUByte(byte data)
public void writeUByte(byte data)
Writes a single byte value to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | byte | The value to write. |
writeUInt(long data)
public void writeUInt(long data)
Writes a single unsigned integer value to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | long | The value to write. |
writeUIntArray(long[] data)
public void writeUIntArray(long[] data)
Writes an array of unsigned integer values to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | long[] | The array to write. |
writeUShort(int data)
public void writeUShort(int data)
Writes a single unsigned short value to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | int | The value to write. |
writeUShortArray(int[] data)
public void writeUShortArray(int[] data)
Writes an array of unsigned short values to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | int[] | The array to write. |
writeSLong(long data)
public final void writeSLong(long data)
Writes an array of signed long values to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | long | The array to write. |
writeSLongArray(long[] data)
public final void writeSLongArray(long[] data)
Writes an array of signed long values to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | long[] | The array to write. |
writeULong(long data)
public final void writeULong(long data)
Writes an array of unsigned long values to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | long | The array to write. |
writeULongArray(long[] data)
public final void writeULongArray(long[] data)
Writes an array of unsigned long values to the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
data | long[] | The array to write. |