ImageReaderSpipublic abstract class ImageReaderSpi extends ImageReaderWriterSpi The ImageReaderSpi abstract class is a service provider interface (SPI) for
ImageReaders. |
Fields Summary |
---|
public static final Class[] | STANDARD_INPUT_TYPEThe STANDARD_INPUT_TYPE contains ImageInputStream.class. | protected Class[] | inputTypesThe input types. | protected String[] | writerSpiNamesThe 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.
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 boolean | canDecodeInput(java.lang.Object source)Returns true if the format of source object is supported by this reader.
| public javax.imageio.ImageReader | createReaderInstance()Returns an instance of the ImageReader implementation for this service
provider.
return createReaderInstance(null);
| public abstract javax.imageio.ImageReader | createReaderInstance(java.lang.Object extension)Returns an instance of the ImageReader implementation for this service
provider.
| 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.
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 inputTypes;
| public boolean | isOwnReader(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.
throw new UnsupportedOperationException("Not supported yet");
|
|