|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--javax.media.jai.tilecodec.TileCodecDescriptorImpl
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 Strings are treated in a case-retentive and
case-insensitive manner.
| Constructor Summary | |
TileCodecDescriptorImpl(String formatName,
boolean includesSampleModelInfo,
boolean includesLocationInfo)
Creates a TileCodecDescriptorImpl with the given
format name and booleans to specify whether layout
information is included in the encoded stream. |
|
| Method Summary | |
boolean |
arePropertiesSupported()
Whether this descriptor supports properties. |
String |
getName()
Returns the name of the format. |
PropertyGenerator[] |
getPropertyGenerators(String modeName)
Returns an array of PropertyGenerators implementing
the property inheritance for this operation. |
String[] |
getSupportedModes()
Returns the registry modes supported by this descriptor. |
boolean |
includesLocationInfo()
Returns true if the format encodes in the data stream the location of the Raster with respect to its enclosing image. |
boolean |
includesSampleModelInfo()
Returns true if the format encodes layout information generally specified via the SampleModel in the encoded data stream. |
boolean |
isModeSupported(String registryModeName)
This method is implemented to return true if the specified registryModeName is either "tileDecoder" or "tileEncoder". |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public TileCodecDescriptorImpl(String formatName,
boolean includesSampleModelInfo,
boolean includesLocationInfo)
TileCodecDescriptorImpl with the given
format name and booleans to specify whether layout
information is included in the encoded stream.formatName - The name of the format. This is also
the name under which this descriptor
will be registered under in the
OperationRegistry.includesSampleModelInfo - Whether the format encodes the tile's
SampleModel or equivalent
information into the encoded stream.includesLocationInfo - Whether the format encodes the tile's
upper left corner position or equivalent
information into the encoded stream.| Method Detail |
public String getName()
public String[] getSupportedModes()
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.RegistryModepublic boolean isModeSupported(String registryModeName)
registryModeName - The name of the registry mode to check
support for.public boolean arePropertiesSupported()
PropertyGeneratorpublic PropertyGenerator[] getPropertyGenerators(String modeName)
PropertyGenerators 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.modeName is null.arePropertiesSupported() returns falsepublic boolean includesSampleModelInfo()
SampleModel in the encoded data stream.public boolean includesLocationInfo()
Raster with respect to its enclosing image.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||