Packages

 

com.aspose.imaging.fileformats.tiff.filemanagement

Class TiffStreamWriter

  • java.lang.Object
    • com.aspose.imaging.fileformats.tiff.filemanagement.TiffStreamWriter
  • All Implemented Interfaces:
    com.aspose.imaging_internal.interfaces.ISynchronizable
    Direct Known Subclasses:
    TiffBigEndianStreamWriter


    public class TiffStreamWriter
    extends Object
    implements com.aspose.imaging_internal.interfaces.ISynchronizable

    Tiff stream writer.

    • Constructor Detail

      • TiffStreamWriter

        public TiffStreamWriter(StreamContainer writer)

        Initializes a new instance of the TiffStreamWriter class.

        Parameters:
        writer - The stream writer.
    • Method Detail

      • 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.
        Specified by:
        getSyncRoot in interface com.aspose.imaging_internal.interfaces.ISynchronizable
      • getPosition

        public long getPosition()

        Gets or sets the stream position.

        Value: The stream position.
      • setPosition

        public void setPosition(long value)

        Gets or sets the stream position.

        Value: The stream position.
      • write

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

        Writes the specified data.

        Parameters:
        data - The data to write.
        offset - The data offset.
        dataLength - Length of the data to writer.
      • write

        public void write(byte[] data)

        Writes the specified data.

        Parameters:
        data - The data to write.
      • writeDouble

        public void writeDouble(double data)

        Writes a single double value to the stream.

        Parameters:
        data - The value to write.
      • writeDoubleArray

        public void writeDoubleArray(double[] data)

        Writes an array of double values to the stream.

        Parameters:
        data - The array to write.
      • writeFloat

        public void writeFloat(float data)

        Writes a single float value to the stream.

        Parameters:
        data - The value to write.
      • writeFloatArray

        public void writeFloatArray(float[] data)

        Writes an array of float values to the stream.

        Parameters:
        data - The array to write.
      • writeRational

        public void writeRational(TiffRational data)

        Writes a single rational number value to the stream.

        Parameters:
        data - The value to write.
      • writeSRational

        public void writeSRational(TiffSRational data)

        Writes a single signed rational number value to the stream.

        Parameters:
        data - The value to write.
      • writeRationalArray

        public void writeRationalArray(TiffRational[] data)

        Writes an array of unsigned rational values to the stream.

        Parameters:
        data - The array to write.
      • writeSRationalArray

        public void writeSRationalArray(TiffSRational[] data)

        Writes an array of signed rational values to the stream.

        Parameters:
        data - The array to write.
      • writeSByte

        public void writeSByte(byte data)

        Writes a single signed byte value to the stream.

        Parameters:
        data - The value to write.
      • writeSByteArray

        public void writeSByteArray(byte[] data)

        Writes an array of signed byte values to the stream.

        Parameters:
        data - The array to write.
      • writeSLongArray

        public void writeSLongArray(int[] data)

        Writes an array of integer values to the stream.

        Parameters:
        data - The array to write.
      • writeSShort

        public void writeSShort(short data)

        Writes a single short value to the stream.

        Parameters:
        data - The value to write.
      • writeSShortArray

        public void writeSShortArray(short[] data)

        Writes an array of short values to the stream.

        Parameters:
        data - The array to write.
      • writeSlong

        public void writeSlong(int data)

        Writes a single integer value to the stream.

        Parameters:
        data - The value to write.
      • writeUByte

        public void writeUByte(byte data)

        Writes a single byte value to the stream.

        Parameters:
        data - The value to write.
      • writeULong

        public void writeULong(long data)

        Writes a single unsigned integer value to the stream.

        Parameters:
        data - The value to write.
      • writeULongArray

        public void writeULongArray(long[] data)

        Writes an array of unsigned integer values to the stream.

        Parameters:
        data - The array to write.
      • writeUShort

        public void writeUShort(int data)

        Writes a single unsigned short value to the stream.

        Parameters:
        data - The value to write.
      • writeUShortArray

        public void writeUShortArray(int[] data)

        Writes an array of unsigned short values to the stream.

        Parameters:
        data - The array to write.