| java.lang.Object javax.media.jai.tilecodec.TileCodecDescriptorImpl
All known Subclasses: javax.media.jai.tilecodec.GZIPTileCodecDescriptor, javax.media.jai.tilecodec.RawTileCodecDescriptor, javax.media.jai.tilecodec.JPEGTileCodecDescriptor,
TileCodecDescriptorImpl | abstract public class TileCodecDescriptorImpl implements TileCodecDescriptor(Code) | | An abstract class that implements the TileCodecDescriptor
interface and is suitable for subclassing. This class provides default
implementations for some of the methods from
TileCodecDescriptor . Subclasses should override these methods
if they do not wish to retain the default implementation.
All String s are treated in a case-retentive and
case-insensitive manner.
since: JAI 1.1 |
Constructor Summary | |
public | TileCodecDescriptorImpl(String formatName, boolean includesSampleModelInfo, boolean includesLocationInfo) Creates a TileCodecDescriptorImpl with the given
format name and boolean s to specify whether layout
information is included in the encoded stream.
Parameters: formatName - The name of the format. |
Method Summary | |
public boolean | arePropertiesSupported() Whether this descriptor supports properties.
true, if the implementation of this descriptor supportsproperties. | public String | getName() Returns the name of the format. | public PropertyGenerator[] | getPropertyGenerators(String modeName) Returns an array of PropertyGenerator s implementing
the property inheritance for this operation. | public String[] | getSupportedModes() Returns the registry modes supported by this descriptor. | public boolean | includesLocationInfo() Returns true if the format encodes in the data stream the location of
the Raster with respect to its enclosing image. | public boolean | includesSampleModelInfo() Returns true if the format encodes layout information generally
specified via the SampleModel in the encoded data stream. | public boolean | isModeSupported(String registryModeName) This method is implemented to return true if the specified
registryModeName is either "tileDecoder" or "tileEncoder". |
TileCodecDescriptorImpl | public TileCodecDescriptorImpl(String formatName, boolean includesSampleModelInfo, boolean includesLocationInfo)(Code) | | Creates a TileCodecDescriptorImpl with the given
format name and boolean s to specify whether layout
information is included in the encoded stream.
Parameters: formatName - The name of the format. This is alsothe name under which this descriptorwill be registered under in the OperationRegistry . Parameters: includesSampleModelInfo - Whether the format encodes the tile'sSampleModel or equivalentinformation into the encoded stream. Parameters: includesLocationInfo - Whether the format encodes the tile'supper left corner position or equivalentinformation into the encoded stream. throws: IllegalArgumentException - if formatName is null. |
arePropertiesSupported | public boolean arePropertiesSupported()(Code) | | Whether this descriptor supports properties.
true, if the implementation of this descriptor supportsproperties. false otherwise. Since tile codecs do not supportproperties, so this default implementation returns false. See Also: PropertyGenerator |
getName | public String getName()(Code) | | Returns the name of the format.
|
getPropertyGenerators | public PropertyGenerator[] getPropertyGenerators(String modeName)(Code) | | Returns an array of PropertyGenerator s implementing
the property inheritance for this operation. Since neither
TileEncoder or TileDecoder supports
properties, the default implementation throws an
UnsupportedOperationException . Subclasses should
override this method if they wish to produce inherited properties.
throws: IllegalArgumentException - if modeName is null. throws: UnsupportedOperationException - ifarePropertiesSupported() returns false |
getSupportedModes | public String[] getSupportedModes()(Code) | | Returns the registry modes supported by this descriptor. The
default implementation of this method in this class returns a
String array containing the "tileDecoder" and
"tileEncoder" strings. If the subclass does not support any of
these modes, it should override this method to return the names of
those modes that it supports.
See Also: javax.media.jai.RegistryMode |
includesLocationInfo | public boolean includesLocationInfo()(Code) | | Returns true if the format encodes in the data stream the location of
the Raster with respect to its enclosing image.
|
includesSampleModelInfo | public boolean includesSampleModelInfo()(Code) | | Returns true if the format encodes layout information generally
specified via the SampleModel in the encoded data stream.
|
isModeSupported | public boolean isModeSupported(String registryModeName)(Code) | | This method is implemented to return true if the specified
registryModeName is either "tileDecoder" or "tileEncoder". If
the subclass doesn't support any one of these modes, it should
override this method to return true only for the supported mode(s).
Parameters: registryModeName - The name of the registry mode to check support for. throws: IllegalArgumentException - if registryModeName is null. |
|
|