TiffStreamReader
Inheritance: java.lang.Object
public class TiffStreamReader
The tiff stream for handling little endian tiff file format.
Constructors
Constructor | Description |
---|---|
TiffStreamReader(byte[] data) | Initializes a new instance of the TiffStreamReader class. |
TiffStreamReader(byte[] data, int startIndex) | Initializes a new instance of the TiffStreamReader class. |
TiffStreamReader(byte[] data, int startIndex, int dataLength) | Initializes a new instance of the TiffStreamReader class. |
TiffStreamReader(StreamContainer streamContainer) | Initializes a new instance of the TiffStreamReader class. |
Methods
Method | Description |
---|---|
equals(Object arg0) | |
getClass() | |
getLength() | Gets the reader length. |
getThrowExceptions() | Gets or sets a value indicating whether exceptions are thrown on incorrect data processing (reading or writing to stream). |
hashCode() | |
notify() | |
notifyAll() | |
readBytes(byte[] array, int arrayIndex, long position, long count) | Reads an array of byte values from the stream. |
readBytes(long position, long count) | Reads an array of unsigned byte values from the stream. |
readDouble(long position) | Read a single double value from the stream. |
readDoubleArray(long position, long count) | Reads an array of double values from the stream. |
readFloat(long position) | Read a single float value from the stream. |
readFloatArray(long position, long count) | Reads an array of float values from the stream. |
readRational(long position) | Read a single rational number value from the stream. |
readRationalArray(long position, long count) | Reads an array of rational values from the stream. |
readSByte(long position) | Reads signed byte data from the stream. |
readSByteArray(long position, long count) | Reads an array of signed byte values from the stream. |
readSLong(long position) | Read signed integer value from the stream. |
readSLongArray(long position, long count) | Reads an array of signed integer values from the stream. |
readSRational(long position) | Read a single signed rational number value from the stream. |
readSRationalArray(long position, long count) | Reads an array of signed rational values from the stream. |
readSShort(long position) | Read signed short value from the stream. |
readSShortArray(long position, long count) | Reads an array of signed short values from the stream. |
readString_internalized(long position) | Reads the string from the strea. |
readString_internalized(long position, long length) | Reads the string from the strea. |
readULong(long position) | Read unsigned integer value from the stream. |
readULongArray(long position, long count) | Reads an array of unsigned integer values from the stream. |
readUShort(long position) | Read unsigned short value from the stream. |
readUShortArray(long position, long count) | Reads an array of unsigned integer values from the stream. |
setThrowExceptions(boolean value) | Gets or sets a value indicating whether exceptions are thrown on incorrect data processing (reading or writing to stream). |
toStreamContainer(long startPosition) | Converts the underlying data to the stream container. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
TiffStreamReader(byte[] data)
public TiffStreamReader(byte[] data)
Initializes a new instance of the TiffStreamReader class.
Parameters:
Parameter | Type | Description |
---|---|---|
data | byte[] | The byte array data. |
TiffStreamReader(byte[] data, int startIndex)
public TiffStreamReader(byte[] data, int startIndex)
Initializes a new instance of the TiffStreamReader class.
Parameters:
Parameter | Type | Description |
---|---|---|
data | byte[] | The byte array data. |
startIndex | int | The start index into data . |
TiffStreamReader(byte[] data, int startIndex, int dataLength)
public TiffStreamReader(byte[] data, int startIndex, int dataLength)
Initializes a new instance of the TiffStreamReader class.
Parameters:
Parameter | Type | Description |
---|---|---|
data | byte[] | The byte array data. |
startIndex | int | The start index into data . |
dataLength | int | Length of the data. |
TiffStreamReader(StreamContainer streamContainer)
public TiffStreamReader(StreamContainer streamContainer)
Initializes a new instance of the TiffStreamReader class.
Parameters:
Parameter | Type | Description |
---|---|---|
streamContainer | StreamContainer | The stream container. |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getLength()
public long getLength()
Gets the reader length.
Value: The reader length.
Returns: long
getThrowExceptions()
public boolean getThrowExceptions()
Gets or sets a value indicating whether exceptions are thrown on incorrect data processing (reading or writing to stream).
Value: true if exceptions are thrown on incorrect data processing; otherwise, the error conditions are silently ignored.
Returns: boolean
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
readBytes(byte[] array, int arrayIndex, long position, long count)
public long readBytes(byte[] array, int arrayIndex, long position, long count)
Reads an array of byte values from the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
array | byte[] | The array to fill. |
arrayIndex | int | The array index to start putting values to. |
position | long | The stream position to read from. |
count | long | The elements count to read. |
Returns: long - The array of byte values.
readBytes(long position, long count)
public byte[] readBytes(long position, long count)
Reads an array of unsigned byte values from the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
position | long | The position to read from. |
count | long | The elements count. |
Returns: byte[] - The array of unsigned byte values.
readDouble(long position)
public double readDouble(long position)
Read a single double value from the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
position | long | The position to read from. |
Returns: double - The single double value.
readDoubleArray(long position, long count)
public double[] readDoubleArray(long position, long count)
Reads an array of double values from the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
position | long | The position to read from. |
count | long | The elements count. |
Returns: double[] - The array of double values.
readFloat(long position)
public float readFloat(long position)
Read a single float value from the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
position | long | The position to read from. |
Returns: float - The single float value.
readFloatArray(long position, long count)
public float[] readFloatArray(long position, long count)
Reads an array of float values from the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
position | long | The position to read from. |
count | long | The elements count. |
Returns: float[] - The array of float values.
readRational(long position)
public TiffRational readRational(long position)
Read a single rational number value from the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
position | long | The position to read from. |
Returns: TiffRational - The rational number.
readRationalArray(long position, long count)
public TiffRational[] readRationalArray(long position, long count)
Reads an array of rational values from the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
position | long | The position to read from. |
count | long | The elements count. |
Returns: com.aspose.psd.fileformats.tiff.TiffRational[] - The array of rational values.
readSByte(long position)
public byte readSByte(long position)
Reads signed byte data from the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
position | long | The position to read from. |
Returns: byte - The signed byte value.
readSByteArray(long position, long count)
public byte[] readSByteArray(long position, long count)
Reads an array of signed byte values from the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
position | long | The position to read from. |
count | long | The elements count. |
Returns: byte[] - The array of signed byte values.
readSLong(long position)
public int readSLong(long position)
Read signed integer value from the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
position | long | The position to read from. |
Returns: int - A signed integer value.
readSLongArray(long position, long count)
public int[] readSLongArray(long position, long count)
Reads an array of signed integer values from the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
position | long | The position to read from. |
count | long | The elements count. |
Returns: int[] - The array of signed integer values.
readSRational(long position)
public TiffSRational readSRational(long position)
Read a single signed rational number value from the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
position | long | The position to read from. |
Returns: TiffSRational - The signed rational number.
readSRationalArray(long position, long count)
public TiffSRational[] readSRationalArray(long position, long count)
Reads an array of signed rational values from the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
position | long | The position to read from. |
count | long | The elements count. |
Returns: com.aspose.psd.fileformats.tiff.TiffSRational[] - The array of signed rational values.
readSShort(long position)
public short readSShort(long position)
Read signed short value from the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
position | long | The position to read from. |
Returns: short - A signed short value.
readSShortArray(long position, long count)
public short[] readSShortArray(long position, long count)
Reads an array of signed short values from the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
position | long | The position to read from. |
count | long | The elements count. |
Returns: short[] - The array of signed short values.
readString_internalized(long position)
public final String readString_internalized(long position)
Reads the string from the strea.
Parameters:
Parameter | Type | Description |
---|---|---|
position | long | The position. |
Returns: java.lang.String - The string.
readString_internalized(long position, long length)
public final String readString_internalized(long position, long length)
Reads the string from the strea.
Parameters:
Parameter | Type | Description |
---|---|---|
position | long | The position. |
length | long | The length. |
Returns: java.lang.String - The string.
readULong(long position)
public long readULong(long position)
Read unsigned integer value from the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
position | long | The position to read from. |
Returns: long - An unsigned integer value.
readULongArray(long position, long count)
public long[] readULongArray(long position, long count)
Reads an array of unsigned integer values from the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
position | long | The position to read from. |
count | long | The elements count. |
Returns: long[] - The array of unsigned integer values.
readUShort(long position)
public int readUShort(long position)
Read unsigned short value from the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
position | long | The position to read from. |
Returns: int - An unsigned short value.
readUShortArray(long position, long count)
public int[] readUShortArray(long position, long count)
Reads an array of unsigned integer values from the stream.
Parameters:
Parameter | Type | Description |
---|---|---|
position | long | The position to read from. |
count | long | The elements count. |
Returns: int[] - The array of unsigned integer values.
setThrowExceptions(boolean value)
public void setThrowExceptions(boolean value)
Gets or sets a value indicating whether exceptions are thrown on incorrect data processing (reading or writing to stream).
Value: true if exceptions are thrown on incorrect data processing; otherwise, the error conditions are silently ignored.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
toStreamContainer(long startPosition)
public StreamContainer toStreamContainer(long startPosition)
Converts the underlying data to the stream container.
Parameters:
Parameter | Type | Description |
---|---|---|
startPosition | long | The start position to start conversion from. |
Returns: StreamContainer - The StreamContainer with converted data.
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |