|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A factory for creating TileEncoders.
This class stipulates that the capabilities of the
TileEncoder be specified by implementing the
getEncodingCapability() method.
NegotiableCapability| Method Summary | |
TileEncoder |
createEncoder(OutputStream output,
TileCodecParameterList paramList,
SampleModel sampleModel)
Creates a TileEncoder capable of encoding a
Raster with the specified SampleModel
using the encoding parameters specified via the
TileCodecParameterList, to the given
OutputStream. |
NegotiableCapability |
getEncodeCapability()
Returns the capabilities of this TileEncoder as a
NegotiableCapability. |
| Method Detail |
public TileEncoder createEncoder(OutputStream output,
TileCodecParameterList paramList,
SampleModel sampleModel)
TileEncoder capable of encoding a
Raster with the specified SampleModel
using the encoding parameters specified via the
TileCodecParameterList, 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.
output - The OutputStream to write the encoded
data to.paramList - The TileCodecParameterList containing
the encoding parameters.sampleModel - The SampleModel of the
Raster to be encoded.public NegotiableCapability getEncodeCapability()
TileEncoder as a
NegotiableCapability.NegotiableCapability
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||