Top Fields Constructors Methods
com.sun.imageio.plugins.tiff

public Class TIFFNullCompressor

extends TIFFCompressor
Class Inheritance
Imports
javax.imageio.plugins.tiff.BaselineTIFFTagSet, java.io.IOException

Field Summary

Inherited from com.sun.imageio.plugins.tiff.TIFFCompressor:
compressionTagValuecompressionTypeisCompressionLosslessmetadatastreamwriter

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
encode(byte[]
an array of bytes containing the packed but uncompressed image data.
b
,
int
the starting offset of the data to be written in the array b.
off
,
int
the width of the rectangle of pixels to be written.
width
,
int
the height of the rectangle of pixels to be written.
height
,
int[]
an array of ints indicting the number of bits used to represent each image sample within a pixel.
bitsPerSample
,
int
the number of bytes separating each row of the input data.
scanlineStride
)

Implements abstract com.sun.imageio.plugins.tiff.TIFFCompressor.encode.

Encodes the supplied image data, writing to the currently set ImageOutputStream.
Inherited from com.sun.imageio.plugins.tiff.TIFFCompressor:
getCompressionTagValuegetCompressionTypegetMetadatagetStreamgetWriterisCompressionLosslesssetMetadatasetStreamsetWriter

Constructor Detail

TIFFNullCompressorback to summary
public TIFFNullCompressor()

Method Detail

encodeback to summary
public int encode(byte[] b, int off, int width, int height, int[] bitsPerSample, int scanlineStride) throws IOException

Implements abstract com.sun.imageio.plugins.tiff.TIFFCompressor.encode.

Doc from com.sun.imageio.plugins.tiff.TIFFCompressor.encode.

Encodes the supplied image data, writing to the currently set ImageOutputStream.

Parameters
b:byte[]

an array of bytes containing the packed but uncompressed image data.

off:int

the starting offset of the data to be written in the array b.

width:int

the width of the rectangle of pixels to be written.

height:int

the height of the rectangle of pixels to be written.

bitsPerSample:int[]

an array of ints indicting the number of bits used to represent each image sample within a pixel.

scanlineStride:int

the number of bytes separating each row of the input data.

Returns:int

the number of bytes written.

Exceptions
IOException:
if the supplied data cannot be encoded by this TIFFCompressor, or if any I/O error occurs during writing.