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

ImageReaderSpi

public abstract class ImageReaderSpi extends ImageReaderWriterSpi
The ImageReaderSpi abstract class is a service provider interface (SPI) for ImageReaders.
since
Android 1.0

Fields Summary
public static final Class[]
STANDARD_INPUT_TYPE
The STANDARD_INPUT_TYPE contains ImageInputStream.class.
protected Class[]
inputTypes
The input types.
protected String[]
writerSpiNames
The writer SPI names.
Constructors Summary
protected ImageReaderSpi()
Instantiates a new ImageReaderSpi.


             
      
        throw new UnsupportedOperationException("Not supported yet");
    
public ImageReaderSpi(String vendorName, String version, String[] names, String[] suffixes, String[] MIMETypes, String pluginClassName, Class[] inputTypes, String[] writerSpiNames, boolean supportsStandardStreamMetadataFormat, String nativeStreamMetadataFormatName, String nativeStreamMetadataFormatClassName, String[] extraStreamMetadataFormatNames, String[] extraStreamMetadataFormatClassNames, boolean supportsStandardImageMetadataFormat, String nativeImageMetadataFormatName, String nativeImageMetadataFormatClassName, String[] extraImageMetadataFormatNames, String[] extraImageMetadataFormatClassNames)
Instantiates a new ImageReaderSpi.

param
vendorName the vendor name.
param
version the version.
param
names the format names.
param
suffixes the array of strings representing the file suffixes.
param
MIMETypes the an array of strings representing MIME types.
param
pluginClassName the plug-in class name.
param
inputTypes the input types.
param
writerSpiNames the array of strings with class names of all associated ImageWriters.
param
supportsStandardStreamMetadataFormat the value indicating if stream metadata can be described by standard metadata format.
param
nativeStreamMetadataFormatName the native stream metadata format name, returned by getNativeStreamMetadataFormatName.
param
nativeStreamMetadataFormatClassName the native stream metadata format class name, returned by getNativeStreamMetadataFormat.
param
extraStreamMetadataFormatNames the extra stream metadata format names, returned by getExtraStreamMetadataFormatNames.
param
extraStreamMetadataFormatClassNames the extra stream metadata format class names, returned by getStreamMetadataFormat.
param
supportsStandardImageMetadataFormat the value indicating if image metadata can be described by standard metadata format.
param
nativeImageMetadataFormatName the native image metadata format name, returned by getNativeImageMetadataFormatName.
param
nativeImageMetadataFormatClassName the native image metadata format class name, returned by getNativeImageMetadataFormat.
param
extraImageMetadataFormatNames the extra image metadata format names, returned by getExtraImageMetadataFormatNames.
param
extraImageMetadataFormatClassNames the extra image metadata format class names, returned by getImageMetadataFormat.

        super(vendorName, version, names, suffixes, MIMETypes, pluginClassName,
                supportsStandardStreamMetadataFormat, nativeStreamMetadataFormatName,
                nativeStreamMetadataFormatClassName, extraStreamMetadataFormatNames,
                extraStreamMetadataFormatClassNames, supportsStandardImageMetadataFormat,
                nativeImageMetadataFormatName, nativeImageMetadataFormatClassName,
                extraImageMetadataFormatNames, extraImageMetadataFormatClassNames);

        if (inputTypes == null || inputTypes.length == 0) {
            throw new NullPointerException("input types array cannot be NULL or empty");
        }
        this.inputTypes = inputTypes;
        this.writerSpiNames = writerSpiNames;
    
Methods Summary
public abstract booleancanDecodeInput(java.lang.Object source)
Returns true if the format of source object is supported by this reader.

param
source the source object to be decoded (for example an ImageInputStream).
return
true, if the format of source object is supported by this reader, false otherwise.
throws
IOException if an I/O exception has occurred.

public javax.imageio.ImageReadercreateReaderInstance()
Returns an instance of the ImageReader implementation for this service provider.

return
the ImageReader.
throws
IOException if an I/O exception has occurred.

        return createReaderInstance(null);
    
public abstract javax.imageio.ImageReadercreateReaderInstance(java.lang.Object extension)
Returns an instance of the ImageReader implementation for this service provider.

param
extension the a plug-in specific extension object, or null.
return
the ImageReader.
throws
IOException if an I/O exception has occurred.

public java.lang.String[]getImageWriterSpiNames()
Gets an array of strings with names of the ImageWriterSpi classes that support the internal metadata representation used by the ImageReader of this service provider, or null if there are no such ImageWriters.

return
the array of strings with names of the ImageWriterSpi classes.

        throw new UnsupportedOperationException("Not supported yet");
    
public java.lang.Class[]getInputTypes()
Gets an array of Class objects whose types can be used as input for this reader.

return
the input types.

        return inputTypes;
    
public booleanisOwnReader(javax.imageio.ImageReader reader)
Checks whether or not the specified ImageReader object is an instance of the ImageReader associated with this service provider or not.

param
reader the ImageReader.
return
true, if the specified ImageReader object is an instance of the ImageReader associated with this service provider, false otherwise.

        throw new UnsupportedOperationException("Not supported yet");