| java.lang.Object javax.media.jai.tilecodec.TileDecoderImpl
All known Subclasses: com.sun.media.jai.tilecodec.GZIPTileDecoder, com.sun.media.jai.tilecodec.RawTileDecoder, com.sun.media.jai.tilecodec.JPEGTileDecoder,
TileDecoderImpl | abstract public class TileDecoderImpl implements TileDecoder(Code) | | A partial implementation of the TileDecoder interface
useful for subclassing.
since: JAI 1.1 |
formatName | protected String formatName(Code) | | The name of the format.
|
inputStream | protected InputStream inputStream(Code) | | The InputStream containing the encoded data to decode.
|
TileDecoderImpl | public TileDecoderImpl(String formatName, InputStream input, TileCodecParameterList param)(Code) | | Constructs a TileDecoderImpl . An
IllegalArgumentException will be thrown if
param 's getParameterListDescriptor()
method does not return the same descriptor as that from
the associated TileCodecDescriptor 's
getParameterListDescriptor method for the "tileDecoder"
registry mode.
If param is null, then the default parameter list for decoding
as defined by the associated TileCodecDescriptor 's
getDefaultParameters() method will be used for decoding.
If this too is null, an IllegalArgumentException will
be thrown if the ParameterListDescriptor associated
with the associated TileCodecDescriptor for the
"tileDecoder" registry mode, reports that the number of parameters
for this format is non-zero.
Parameters: formatName - The name of the format. Parameters: input - The InputStream to decode data from. Parameters: param - The object containing the tile decoding parameters. throws: IllegalArgumentException - if formatName is null. throws: IllegalArgumentException - if input is null. throws: IllegalArgumentException - if param's getFormatName() method doesnot return the same formatName as the one specified to this method. throws: IllegalArgumentException - if the ParameterListDescriptor associated with the param and the associated TileCodecDescriptor arenot equal. throws: IllegalArgumentException - if param does not have "tileDecoder"as one of the valid modes that it supports. throws: IllegalArgumentException - if the associated TileCodecDescriptor'sincludesSampleModelInfo() returns false and a non-null value for the"sampleModel" parameter is not supplied in the supplied parameter list. |
getDecodeParameterList | public TileCodecParameterList getDecodeParameterList()(Code) | | Returns the current parameters as an instance of the
TileCodecParameterList interface.
|
getFormatName | public String getFormatName()(Code) | | Returns the format name.
|
getInputStream | public InputStream getInputStream()(Code) | | Returns the InputStream associated with this
TileDecoder .
|
|
|