| java.lang.Object javax.media.jai.tilecodec.TileEncoderImpl
All known Subclasses: com.sun.media.jai.tilecodec.GZIPTileEncoder, com.sun.media.jai.tilecodec.RawTileEncoder, com.sun.media.jai.tilecodec.JPEGTileEncoder,
TileEncoderImpl | abstract public class TileEncoderImpl implements TileEncoder(Code) | | A partial implementation of the TileEncoder interface
useful for subclassing.
since: JAI 1.1 |
formatName | protected String formatName(Code) | | The name of the format.
|
outputStream | protected OutputStream outputStream(Code) | | The OutputStream to write the encoded data to.
|
TileEncoderImpl | public TileEncoderImpl(String formatName, OutputStream output, TileCodecParameterList param)(Code) | | Constructs an TileEncoderImpl . 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 "tileEncoder"
registry mode.
If param is null, then the default parameter list for encoding
as defined by the associated TileCodecDescriptor 's
getDefaultParameters() method will be used for encoding.
If this too is null, an IllegalArgumentException will
be thrown if the ParameterListDescriptor associated
with the associated TileCodecDescriptor for the
"tileEncoder" registry mode, reports that the number of parameters
for this format is non-zero.
Parameters: formatName - The name of the format. Parameters: output - The OutputStream to write encoded data to. Parameters: param - The object containing the tile encoding parameters. throws: IllegalArgumentException - if formatName is null. throws: IllegalArgumentException - if output 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 ParameterListDescriptors associated with the param and the associated TileCodecDescriptor arenot equal. throws: IllegalArgumentException - if param does not have "tileEncoder"as one of the valid modes that it supports. |
getEncodeParameterList | public TileCodecParameterList getEncodeParameterList()(Code) | | Returns the current parameters as an instance of the
TileCodecParameterList interface.
|
getFormatName | public String getFormatName()(Code) | | Returns the format name of the encoding scheme.
|
getOutputStream | public OutputStream getOutputStream()(Code) | | Returns the OutputStream to which the encoded data will
be written.
|
|
|