declare namespace javax { namespace imageio { namespace spi { /** * A superinterface for functionality common to all Image I/O service * provider interfaces (SPIs). For more information on service * provider classes, see the class comment for the * IIORegistry class. * @see IIORegistry * @see javax.imageio.spi.ImageReaderSpi * @see javax.imageio.spi.ImageWriterSpi * @see javax.imageio.spi.ImageTranscoderSpi * @see javax.imageio.spi.ImageInputStreamSpi */ // @ts-ignore abstract class IIOServiceProvider extends java.lang.Object implements javax.imageio.spi.RegisterableService { /** * Constructs an IIOServiceProvider with a given * vendor name and version identifier. * @param vendorName the vendor name. * @param version a version identifier. * @exception IllegalArgumentException if vendorName * is null. * @exception IllegalArgumentException if version * is null. */ // @ts-ignore constructor(vendorName: java.lang.String | string, version: java.lang.String | string) /** * 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. */ // @ts-ignore constructor() /** * A String to be returned from * getVendorName, initially null. * Constructors should set this to a non-null value. */ // @ts-ignore vendorName: java.lang.String | string /** * A String to be returned from * getVersion, initially null. Constructors should * set this to a non-null value. */ // @ts-ignore version: java.lang.String | string /** * 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 ServiceRegistry#registerServiceProvider(Object provider) */ // @ts-ignore public onRegistration(registry: javax.imageio.spi.ServiceRegistry, category: java.lang.Class): void /** * A callback that will be whenever the Spi class has been * deregistered from a ServiceRegistry. *

Only the registry should call this method. *

The default implementation does nothing. * @see ServiceRegistry#deregisterServiceProvider(Object provider) */ // @ts-ignore public onDeregistration(registry: javax.imageio.spi.ServiceRegistry, category: java.lang.Class): void /** * 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. * @return a non-null String containing * the name of the vendor. */ // @ts-ignore public getVendorName(): string /** * 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. * @return a non-null String containing * the version of this service provider. */ // @ts-ignore public getVersion(): string /** * 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. * @param locale a Locale for which the return value * should be localized. * @return a String containing a description of this * service provider. */ // @ts-ignore public abstract getDescription(locale: java.util.Locale): string } } } }