| |
|
| java.lang.Object javax.imageio.spi.IIOServiceProvider
All known Subclasses: javax.imageio.spi.ImageReaderWriterSpi, javax.imageio.spi.ImageOutputStreamSpi, javax.imageio.spi.ImageInputStreamSpi, javax.imageio.spi.ImageTranscoderSpi,
Field Summary | |
protected String | vendorName A String to be returned from
getVendorName , initially null . | protected String | version A String to be returned from
getVersion , initially null. |
Method Summary | |
abstract public String | getDescription(Locale locale) Returns a brief, human-readable description of this service
provider and its associated implementation. | public String | getVendorName() Returns the name of the vendor responsible for creating this
service provider and its associated implementation. | public String | getVersion() Returns a string describing the version
number of this service provider and its associated
implementation. | public void | onDeregistration(ServiceRegistry registry, Class> category) A callback that will be whenever the Spi class has been
deregistered from a ServiceRegistry . | public void | onRegistration(ServiceRegistry registry, Class> category) A callback that will be called exactly once after the Spi class
has been instantiated and registered in a
ServiceRegistry . |
vendorName | protected String vendorName(Code) | | A String to be returned from
getVendorName , initially null .
Constructors should set this to a non-null value.
|
version | protected String version(Code) | | A String to be returned from
getVersion , initially null. Constructors should
set this to a non-null value.
|
IIOServiceProvider | public IIOServiceProvider(String vendorName, String version)(Code) | | Constructs an IIOServiceProvider with a given
vendor name and version identifier.
Parameters: vendorName - the vendor name. Parameters: version - a version identifier. exception: IllegalArgumentException - if vendorName is null . exception: IllegalArgumentException - if version is null . |
IIOServiceProvider | public IIOServiceProvider()(Code) | | Constructs a blank IIOServiceProvider . It is up
to the subclass to initialize instance variables and/or
override method implementations in order to ensure that the
getVendorName and getVersion methods
will return non-null values.
|
getDescription | abstract public String getDescription(Locale locale)(Code) | | Returns a brief, human-readable description of this service
provider and its associated implementation. The resulting
string should be localized for the supplied
Locale , if possible.
Parameters: locale - a Locale for which the return valueshould be localized. a String containing a description of thisservice provider. |
getVendorName | public String getVendorName()(Code) | | Returns the name of the vendor responsible for creating this
service provider and its associated implementation. Because
the vendor name may be used to select a service provider,
it is not localized.
The default implementation returns the value of the
vendorName instance variable.
a non-null String containingthe name of the vendor. |
getVersion | public String getVersion()(Code) | | Returns a string describing the version
number of this service provider and its associated
implementation. Because the version may be used by transcoders
to identify the service providers they understand, this method
is not localized.
The default implementation returns the value of the
version instance variable.
a non-null String containingthe version of this service provider. |
onRegistration | public void onRegistration(ServiceRegistry registry, Class> category)(Code) | | A callback that will be called exactly once after the Spi class
has been instantiated and registered in a
ServiceRegistry . This may be used to verify that
the environment is suitable for this service, for example that
native libraries can be loaded. If the service cannot function
in the environment where it finds itself, it should deregister
itself from the registry.
Only the registry should call this method.
The default implementation does nothing.
See Also: ServiceRegistry.registerServiceProvider(Object provider) |
|
|
|