TiffStreamFactory

Inheritance: java.lang.Object

public final class TiffStreamFactory

The Tiff stream factory based on byte endianness.

Methods

MethodDescription
getTiffWriter(StreamContainer stream, int byteOrder)Gets the tiff stream writer.
getTiffWriter(StreamContainer stream, int byteOrder, boolean isBigTiff)Gets the tiff stream writer.
getTiffReader(StreamContainer stream, int byteOrder)Gets the tiff stream reader.
getTiffReader(StreamContainer stream, int byteOrder, boolean isBigTiff)Gets the tiff stream reader.
getTiffReader(byte[] bytes, int bytesOffset, int dataLength, int byteOrder)Gets the tiff stream reader.
getTiffReader(byte[] bytes, int bytesOffset, int dataLength, int byteOrder, boolean isBigTiff)Gets the tiff stream reader.

getTiffWriter(StreamContainer stream, int byteOrder)

public static TiffStreamWriter getTiffWriter(StreamContainer stream, int byteOrder)

Gets the tiff stream writer.

Parameters:

ParameterTypeDescription
streamStreamContainerThe stream container.
byteOrderintThe byte order.

Returns: TiffStreamWriter - Tiff stream suitable for writing.

getTiffWriter(StreamContainer stream, int byteOrder, boolean isBigTiff)

public static TiffStreamWriter getTiffWriter(StreamContainer stream, int byteOrder, boolean isBigTiff)

Gets the tiff stream writer.

Parameters:

ParameterTypeDescription
streamStreamContainerThe stream container.
byteOrderintThe byte order.
isBigTiffbooleanIndicates TIFF type.

Returns: TiffStreamWriter - Tiff stream suitable for writing.

getTiffReader(StreamContainer stream, int byteOrder)

public static TiffStreamReader getTiffReader(StreamContainer stream, int byteOrder)

Gets the tiff stream reader.

Parameters:

ParameterTypeDescription
streamStreamContainerThe stream container.
byteOrderintThe byte order.

Returns: TiffStreamReader - Tiff stream suitable for reading.

getTiffReader(StreamContainer stream, int byteOrder, boolean isBigTiff)

public static TiffStreamReader getTiffReader(StreamContainer stream, int byteOrder, boolean isBigTiff)

Gets the tiff stream reader.

Parameters:

ParameterTypeDescription
streamStreamContainerThe stream container.
byteOrderintThe byte order.
isBigTiffbooleanIndicates TIFF type.

Returns: TiffStreamReader - Tiff stream suitable for reading.

getTiffReader(byte[] bytes, int bytesOffset, int dataLength, int byteOrder)

public static TiffStreamReader getTiffReader(byte[] bytes, int bytesOffset, int dataLength, int byteOrder)

Gets the tiff stream reader.

Parameters:

ParameterTypeDescription
bytesbyte[]The bytes.
bytesOffsetintThe bytes offset.
dataLengthintLength of the data.
byteOrderintThe byte order.

Returns: TiffStreamReader - Tiff stream suitable for reading.

getTiffReader(byte[] bytes, int bytesOffset, int dataLength, int byteOrder, boolean isBigTiff)

public static TiffStreamReader getTiffReader(byte[] bytes, int bytesOffset, int dataLength, int byteOrder, boolean isBigTiff)

Gets the tiff stream reader.

Parameters:

ParameterTypeDescription
bytesbyte[]The bytes.
bytesOffsetintThe bytes offset.
dataLengthintLength of the data.
byteOrderintThe byte order.
isBigTiffbooleanIndicates Tiff type: original or big.

Returns: TiffStreamReader - Tiff stream suitable for reading.