FileDocCategorySizeDatePackage
IIORegistry.javaAPI DocAndroid 1.5 API3984Wed May 06 22:41:54 BST 2009javax.imageio.spi

IIORegistry

public final class IIORegistry extends ServiceRegistry
The IIORegistry class registers service provider instances (SPI). Service provider instances are recognized by specific meta-information in the JAR files containing them. The JAR files with SPI classes are loaded from the application class path.
since
Android 1.0

Fields Summary
private static IIORegistry
instance
The instance.
private static final Class[]
CATEGORIES
The Constant CATEGORIES.
Constructors Summary
private IIORegistry()
Instantiates a new IIO registry.


              
      
        super(Arrays.<Class<?>> asList(CATEGORIES).iterator());
        registerBuiltinSpis();
        registerApplicationClasspathSpis();
    
Methods Summary
public static javax.imageio.spi.IIORegistrygetDefaultInstance()
Gets the default IIORegistry instance.

return
the default IIORegistry instance.

        // TODO implement own instance for each ThreadGroup (see also
        // ThreadLocal)
        synchronized (IIORegistry.class) {
            if (instance == null) {
                instance = new IIORegistry();
            }
            return instance;
        }
    
public voidregisterApplicationClasspathSpis()
Registers all service providers from the application class path.

        // -- TODO implement for non-builtin plugins
    
private voidregisterBuiltinSpis()
Register built-in SPIs.

        registerServiceProvider(new JPEGImageWriterSpi());
        registerServiceProvider(new JPEGImageReaderSpi());
        registerServiceProvider(new PNGImageReaderSpi());
        registerServiceProvider(new PNGImageWriterSpi());
        registerServiceProvider(new FileIOSSpi());
        registerServiceProvider(new FileIISSpi());
        registerServiceProvider(new RAFIOSSpi());
        registerServiceProvider(new RAFIISSpi());
        registerServiceProvider(new OutputStreamIOSSpi());
        registerServiceProvider(new InputStreamIISSpi());
        // -- TODO implement