Creates a TileEncoder capable of encoding a
Raster with the specified SampleModel
using the specified TileCodecParameterList
containing the encoding parameters to the given OutputStream .
This method can return null if the TileEncoder is not
capable of producing output for the given set of parameters.
For example, if a TileEncoder is only capable of dealing
with a PixelInterleavedSampleModel , and the supplied
SampleModel is not an instance of
PixelInterleavedSampleModel , null should be
returned. The supplied SampleModel should be used to
decide whether it can be encoded by this class, and is not needed
to actually construct a TileEncoder .
If the supplied TileCodecParameterList is null,
a default TileCodecParameterList from the
TileCodecDescriptor will be used to create the encoder.
Exceptions thrown by the TileEncoder
will be caught by this method and will not be propagated.
Parameters: output - The OutputStream to write the encodeddata to. Parameters: paramList - The TileCodecParameterList containingthe encoding parameters. Parameters: sampleModel - The SampleModel of the encodedRaster s. throws: IllegalArgumentException - if output is null. |