javax.imageio.spi
Class ImageReaderWriterSpi

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.imageio.spi.IIOServiceProvider sample code for javax.imageio.spi.IIOServiceProvider definition code for javax.imageio.spi.IIOServiceProvider 
      extended by javax.imageio.spi.ImageReaderWriterSpi
All Implemented Interfaces:
RegisterableService sample code for javax.imageio.spi.RegisterableService definition code for javax.imageio.spi.RegisterableService
Direct Known Subclasses:
ImageReaderSpi sample code for javax.imageio.spi.ImageReaderSpi definition code for javax.imageio.spi.ImageReaderSpi , ImageWriterSpi sample code for javax.imageio.spi.ImageWriterSpi definition code for javax.imageio.spi.ImageWriterSpi

public abstract class ImageReaderWriterSpi
extends IIOServiceProvider sample code for javax.imageio.spi.IIOServiceProvider definition code for javax.imageio.spi.IIOServiceProvider

A superclass containing instance variables and methods common to ImageReaderSpi and ImageWriterSpi.

See Also:
IIORegistry sample code for javax.imageio.spi.IIORegistry definition code for javax.imageio.spi.IIORegistry , ImageReaderSpi sample code for javax.imageio.spi.ImageReaderSpi definition code for javax.imageio.spi.ImageReaderSpi , ImageWriterSpi sample code for javax.imageio.spi.ImageWriterSpi definition code for javax.imageio.spi.ImageWriterSpi

Field Summary
protected  String sample code for java.lang.String definition code for java.lang.String [] extraImageMetadataFormatClassNames sample code for javax.imageio.spi.ImageReaderWriterSpi.extraImageMetadataFormatClassNames definition code for javax.imageio.spi.ImageReaderWriterSpi.extraImageMetadataFormatClassNames
          An array of Strings containing the class names of any additional image metadata formats supported by this plug-in, initially null.
protected  String sample code for java.lang.String definition code for java.lang.String [] extraImageMetadataFormatNames sample code for javax.imageio.spi.ImageReaderWriterSpi.extraImageMetadataFormatNames definition code for javax.imageio.spi.ImageReaderWriterSpi.extraImageMetadataFormatNames
          An array of Strings containing the names of any additional image metadata formats supported by this plug-in, initially null.
protected  String sample code for java.lang.String definition code for java.lang.String [] extraStreamMetadataFormatClassNames sample code for javax.imageio.spi.ImageReaderWriterSpi.extraStreamMetadataFormatClassNames definition code for javax.imageio.spi.ImageReaderWriterSpi.extraStreamMetadataFormatClassNames
          An array of Strings containing the class names of any additional stream metadata formats supported by this plug-in, initially null.
protected  String sample code for java.lang.String definition code for java.lang.String [] extraStreamMetadataFormatNames sample code for javax.imageio.spi.ImageReaderWriterSpi.extraStreamMetadataFormatNames definition code for javax.imageio.spi.ImageReaderWriterSpi.extraStreamMetadataFormatNames
          An array of Strings containing the names of any additional stream metadata formats supported by this plug-in, initially null.
protected  String sample code for java.lang.String definition code for java.lang.String [] MIMETypes sample code for javax.imageio.spi.ImageReaderWriterSpi.MIMETypes definition code for javax.imageio.spi.ImageReaderWriterSpi.MIMETypes
          An array of strings to be returned from getMIMETypes, initially null.
protected  String sample code for java.lang.String definition code for java.lang.String [] names sample code for javax.imageio.spi.ImageReaderWriterSpi.names definition code for javax.imageio.spi.ImageReaderWriterSpi.names
          An array of strings to be returned from getFormatNames, initially null.
protected  String sample code for java.lang.String definition code for java.lang.String nativeImageMetadataFormatClassName sample code for javax.imageio.spi.ImageReaderWriterSpi.nativeImageMetadataFormatClassName definition code for javax.imageio.spi.ImageReaderWriterSpi.nativeImageMetadataFormatClassName
          A String containing the class name of the native stream metadata format supported by this plug-in, initially null.
protected  String sample code for java.lang.String definition code for java.lang.String nativeImageMetadataFormatName sample code for javax.imageio.spi.ImageReaderWriterSpi.nativeImageMetadataFormatName definition code for javax.imageio.spi.ImageReaderWriterSpi.nativeImageMetadataFormatName
          A String containing the name of the native stream metadata format supported by this plug-in, initially null.
protected  String sample code for java.lang.String definition code for java.lang.String nativeStreamMetadataFormatClassName sample code for javax.imageio.spi.ImageReaderWriterSpi.nativeStreamMetadataFormatClassName definition code for javax.imageio.spi.ImageReaderWriterSpi.nativeStreamMetadataFormatClassName
          A String containing the class name of the native stream metadata format supported by this plug-in, initially null.
protected  String sample code for java.lang.String definition code for java.lang.String nativeStreamMetadataFormatName sample code for javax.imageio.spi.ImageReaderWriterSpi.nativeStreamMetadataFormatName definition code for javax.imageio.spi.ImageReaderWriterSpi.nativeStreamMetadataFormatName
          A String containing the name of the native stream metadata format supported by this plug-in, initially null.
protected  String sample code for java.lang.String definition code for java.lang.String pluginClassName sample code for javax.imageio.spi.ImageReaderWriterSpi.pluginClassName definition code for javax.imageio.spi.ImageReaderWriterSpi.pluginClassName
          A String containing the name of the associated plug-in class, initially null.
protected  String sample code for java.lang.String definition code for java.lang.String [] suffixes sample code for javax.imageio.spi.ImageReaderWriterSpi.suffixes definition code for javax.imageio.spi.ImageReaderWriterSpi.suffixes
          An array of strings to be returned from getFileSuffixes, initially null.
protected  boolean supportsStandardImageMetadataFormat sample code for javax.imageio.spi.ImageReaderWriterSpi.supportsStandardImageMetadataFormat definition code for javax.imageio.spi.ImageReaderWriterSpi.supportsStandardImageMetadataFormat
          A boolean indicating whether this plug-in supports the standard metadata format for image metadata, initially false.
protected  boolean supportsStandardStreamMetadataFormat sample code for javax.imageio.spi.ImageReaderWriterSpi.supportsStandardStreamMetadataFormat definition code for javax.imageio.spi.ImageReaderWriterSpi.supportsStandardStreamMetadataFormat
          A boolean indicating whether this plug-in supports the standard metadata format for stream metadata, initially false.
 
Fields inherited from class javax.imageio.spi.IIOServiceProvider sample code for javax.imageio.spi.IIOServiceProvider definition code for javax.imageio.spi.IIOServiceProvider
vendorName sample code for javax.imageio.spi.IIOServiceProvider.vendorName definition code for javax.imageio.spi.IIOServiceProvider.vendorName , version sample code for javax.imageio.spi.IIOServiceProvider.version definition code for javax.imageio.spi.IIOServiceProvider.version
 
Constructor Summary
ImageReaderWriterSpi sample code for javax.imageio.spi.ImageReaderWriterSpi.ImageReaderWriterSpi() definition code for javax.imageio.spi.ImageReaderWriterSpi.ImageReaderWriterSpi() ()
          Constructs a blank ImageReaderWriterSpi.
ImageReaderWriterSpi sample code for javax.imageio.spi.ImageReaderWriterSpi.ImageReaderWriterSpi(java.lang.String, java.lang.String, java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String, boolean, java.lang.String, java.lang.String, java.lang.String[], java.lang.String[], boolean, java.lang.String, java.lang.String, java.lang.String[], java.lang.String[]) definition code for javax.imageio.spi.ImageReaderWriterSpi.ImageReaderWriterSpi(java.lang.String, java.lang.String, java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String, boolean, java.lang.String, java.lang.String, java.lang.String[], java.lang.String[], boolean, java.lang.String, java.lang.String, java.lang.String[], java.lang.String[]) (String sample code for java.lang.String definition code for java.lang.String  vendorName, String sample code for java.lang.String definition code for java.lang.String  version, String sample code for java.lang.String definition code for java.lang.String [] names, String sample code for java.lang.String definition code for java.lang.String [] suffixes, String sample code for java.lang.String definition code for java.lang.String [] MIMETypes, String sample code for java.lang.String definition code for java.lang.String  pluginClassName, boolean supportsStandardStreamMetadataFormat, String sample code for java.lang.String definition code for java.lang.String  nativeStreamMetadataFormatName, String sample code for java.lang.String definition code for java.lang.String  nativeStreamMetadataFormatClassName, String sample code for java.lang.String definition code for java.lang.String [] extraStreamMetadataFormatNames, String sample code for java.lang.String definition code for java.lang.String [] extraStreamMetadataFormatClassNames, boolean supportsStandardImageMetadataFormat, String sample code for java.lang.String definition code for java.lang.String  nativeImageMetadataFormatName, String sample code for java.lang.String definition code for java.lang.String  nativeImageMetadataFormatClassName, String sample code for java.lang.String definition code for java.lang.String [] extraImageMetadataFormatNames, String sample code for java.lang.String definition code for java.lang.String [] extraImageMetadataFormatClassNames)
          Constructs an ImageReaderWriterSpi with a given set of values.
 
Method Summary
 String sample code for java.lang.String definition code for java.lang.String [] getExtraImageMetadataFormatNames sample code for javax.imageio.spi.ImageReaderWriterSpi.getExtraImageMetadataFormatNames() definition code for javax.imageio.spi.ImageReaderWriterSpi.getExtraImageMetadataFormatNames() ()
          Returns an array of Strings containing the names of additional document formats, other than the native and standard formats, recognized by the getAsTree and setFromTree methods on the image metadata objects produced or consumed by this plug-in.
 String sample code for java.lang.String definition code for java.lang.String [] getExtraStreamMetadataFormatNames sample code for javax.imageio.spi.ImageReaderWriterSpi.getExtraStreamMetadataFormatNames() definition code for javax.imageio.spi.ImageReaderWriterSpi.getExtraStreamMetadataFormatNames() ()
          Returns an array of Strings containing the names of additional document formats, other than the native and standard formats, recognized by the getAsTree and setFromTree methods on the stream metadata objects produced or consumed by this plug-in.
 String sample code for java.lang.String definition code for java.lang.String [] getFileSuffixes sample code for javax.imageio.spi.ImageReaderWriterSpi.getFileSuffixes() definition code for javax.imageio.spi.ImageReaderWriterSpi.getFileSuffixes() ()
          Returns an array of Strings containing a list of file suffixes associated with the formats that are generally usable by the ImageReader or ImageWriter implementation associated with this service provider.
 String sample code for java.lang.String definition code for java.lang.String [] getFormatNames sample code for javax.imageio.spi.ImageReaderWriterSpi.getFormatNames() definition code for javax.imageio.spi.ImageReaderWriterSpi.getFormatNames() ()
          Returns an array of Strings containing human-readable names for the formats that are generally usable by the ImageReader or ImageWriter implementation associated with this service provider.
 IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat getImageMetadataFormat sample code for javax.imageio.spi.ImageReaderWriterSpi.getImageMetadataFormat(java.lang.String) definition code for javax.imageio.spi.ImageReaderWriterSpi.getImageMetadataFormat(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  formatName)
          Returns an IIOMetadataFormat object describing the given image metadata format, or null if no description is available.
 String sample code for java.lang.String definition code for java.lang.String [] getMIMETypes sample code for javax.imageio.spi.ImageReaderWriterSpi.getMIMETypes() definition code for javax.imageio.spi.ImageReaderWriterSpi.getMIMETypes() ()
          Returns an array of Strings containing a list of MIME types associated with the formats that are generally usable by the ImageReader or ImageWriter implementation associated with this service provider.
 String sample code for java.lang.String definition code for java.lang.String getNativeImageMetadataFormatName sample code for javax.imageio.spi.ImageReaderWriterSpi.getNativeImageMetadataFormatName() definition code for javax.imageio.spi.ImageReaderWriterSpi.getNativeImageMetadataFormatName() ()
          Returns the name of the "native" image metadata format for this plug-in, which typically allows for lossless encoding and transmission of the image metadata stored in the format handled by this plug-in.
 String sample code for java.lang.String definition code for java.lang.String getNativeStreamMetadataFormatName sample code for javax.imageio.spi.ImageReaderWriterSpi.getNativeStreamMetadataFormatName() definition code for javax.imageio.spi.ImageReaderWriterSpi.getNativeStreamMetadataFormatName() ()
          Returns the name of the "native" stream metadata format for this plug-in, which typically allows for lossless encoding and transmission of the stream metadata stored in the format handled by this plug-in.
 String sample code for java.lang.String definition code for java.lang.String getPluginClassName sample code for javax.imageio.spi.ImageReaderWriterSpi.getPluginClassName() definition code for javax.imageio.spi.ImageReaderWriterSpi.getPluginClassName() ()
          Returns the fully-qualified class name of the ImageReader or ImageWriter plug-in associated with this service provider.
 IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat getStreamMetadataFormat sample code for javax.imageio.spi.ImageReaderWriterSpi.getStreamMetadataFormat(java.lang.String) definition code for javax.imageio.spi.ImageReaderWriterSpi.getStreamMetadataFormat(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  formatName)
          Returns an IIOMetadataFormat object describing the given stream metadata format, or null if no description is available.
 boolean isStandardImageMetadataFormatSupported sample code for javax.imageio.spi.ImageReaderWriterSpi.isStandardImageMetadataFormatSupported() definition code for javax.imageio.spi.ImageReaderWriterSpi.isStandardImageMetadataFormatSupported() ()
          Returns true if the standard metadata format is among the document formats recognized by the getAsTree and setFromTree methods on the image metadata objects produced or consumed by this plug-in.
 boolean isStandardStreamMetadataFormatSupported sample code for javax.imageio.spi.ImageReaderWriterSpi.isStandardStreamMetadataFormatSupported() definition code for javax.imageio.spi.ImageReaderWriterSpi.isStandardStreamMetadataFormatSupported() ()
          Returns true if the standard metadata format is among the document formats recognized by the getAsTree and setFromTree methods on the stream metadata objects produced or consumed by this plug-in.
 
Methods inherited from class javax.imageio.spi.IIOServiceProvider sample code for javax.imageio.spi.IIOServiceProvider definition code for javax.imageio.spi.IIOServiceProvider
getDescription sample code for javax.imageio.spi.IIOServiceProvider.getDescription(java.util.Locale) definition code for javax.imageio.spi.IIOServiceProvider.getDescription(java.util.Locale) , getVendorName sample code for javax.imageio.spi.IIOServiceProvider.getVendorName() definition code for javax.imageio.spi.IIOServiceProvider.getVendorName() , getVersion sample code for javax.imageio.spi.IIOServiceProvider.getVersion() definition code for javax.imageio.spi.IIOServiceProvider.getVersion() , onDeregistration sample code for javax.imageio.spi.IIOServiceProvider.onDeregistration(javax.imageio.spi.ServiceRegistry, java.lang.Class) definition code for javax.imageio.spi.IIOServiceProvider.onDeregistration(javax.imageio.spi.ServiceRegistry, java.lang.Class) , onRegistration sample code for javax.imageio.spi.IIOServiceProvider.onRegistration(javax.imageio.spi.ServiceRegistry, java.lang.Class) definition code for javax.imageio.spi.IIOServiceProvider.onRegistration(javax.imageio.spi.ServiceRegistry, java.lang.Class)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

names sample code for javax.imageio.spi.ImageReaderWriterSpi.names

protected String sample code for java.lang.String definition code for java.lang.String [] names
An array of strings to be returned from getFormatNames, initially null. Constructors should set this to a non-null value.


suffixes sample code for javax.imageio.spi.ImageReaderWriterSpi.suffixes

protected String sample code for java.lang.String definition code for java.lang.String [] suffixes
An array of strings to be returned from getFileSuffixes, initially null.


MIMETypes sample code for javax.imageio.spi.ImageReaderWriterSpi.MIMETypes

protected String sample code for java.lang.String definition code for java.lang.String [] MIMETypes
An array of strings to be returned from getMIMETypes, initially null.


pluginClassName sample code for javax.imageio.spi.ImageReaderWriterSpi.pluginClassName

protected String sample code for java.lang.String definition code for java.lang.String  pluginClassName
A String containing the name of the associated plug-in class, initially null.


supportsStandardStreamMetadataFormat sample code for javax.imageio.spi.ImageReaderWriterSpi.supportsStandardStreamMetadataFormat

protected boolean supportsStandardStreamMetadataFormat
A boolean indicating whether this plug-in supports the standard metadata format for stream metadata, initially false.


nativeStreamMetadataFormatName sample code for javax.imageio.spi.ImageReaderWriterSpi.nativeStreamMetadataFormatName

protected String sample code for java.lang.String definition code for java.lang.String  nativeStreamMetadataFormatName
A String containing the name of the native stream metadata format supported by this plug-in, initially null.


nativeStreamMetadataFormatClassName sample code for javax.imageio.spi.ImageReaderWriterSpi.nativeStreamMetadataFormatClassName

protected String sample code for java.lang.String definition code for java.lang.String  nativeStreamMetadataFormatClassName
A String containing the class name of the native stream metadata format supported by this plug-in, initially null.


extraStreamMetadataFormatNames sample code for javax.imageio.spi.ImageReaderWriterSpi.extraStreamMetadataFormatNames

protected String sample code for java.lang.String definition code for java.lang.String [] extraStreamMetadataFormatNames
An array of Strings containing the names of any additional stream metadata formats supported by this plug-in, initially null.


extraStreamMetadataFormatClassNames sample code for javax.imageio.spi.ImageReaderWriterSpi.extraStreamMetadataFormatClassNames

protected String sample code for java.lang.String definition code for java.lang.String [] extraStreamMetadataFormatClassNames
An array of Strings containing the class names of any additional stream metadata formats supported by this plug-in, initially null.


supportsStandardImageMetadataFormat sample code for javax.imageio.spi.ImageReaderWriterSpi.supportsStandardImageMetadataFormat

protected boolean supportsStandardImageMetadataFormat
A boolean indicating whether this plug-in supports the standard metadata format for image metadata, initially false.


nativeImageMetadataFormatName sample code for javax.imageio.spi.ImageReaderWriterSpi.nativeImageMetadataFormatName

protected String sample code for java.lang.String definition code for java.lang.String  nativeImageMetadataFormatName
A String containing the name of the native stream metadata format supported by this plug-in, initially null.


nativeImageMetadataFormatClassName sample code for javax.imageio.spi.ImageReaderWriterSpi.nativeImageMetadataFormatClassName

protected String sample code for java.lang.String definition code for java.lang.String  nativeImageMetadataFormatClassName
A String containing the class name of the native stream metadata format supported by this plug-in, initially null.


extraImageMetadataFormatNames sample code for javax.imageio.spi.ImageReaderWriterSpi.extraImageMetadataFormatNames

protected String sample code for java.lang.String definition code for java.lang.String [] extraImageMetadataFormatNames
An array of Strings containing the names of any additional image metadata formats supported by this plug-in, initially null.


extraImageMetadataFormatClassNames sample code for javax.imageio.spi.ImageReaderWriterSpi.extraImageMetadataFormatClassNames

protected String sample code for java.lang.String definition code for java.lang.String [] extraImageMetadataFormatClassNames
An array of Strings containing the class names of any additional image metadata formats supported by this plug-in, initially null.

Constructor Detail

ImageReaderWriterSpi sample code for javax.imageio.spi.ImageReaderWriterSpi(java.lang.String, java.lang.String, java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String, boolean, java.lang.String, java.lang.String, java.lang.String[], java.lang.String[], boolean, java.lang.String, java.lang.String, java.lang.String[], java.lang.String[]) definition code for javax.imageio.spi.ImageReaderWriterSpi(java.lang.String, java.lang.String, java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String, boolean, java.lang.String, java.lang.String, java.lang.String[], java.lang.String[], boolean, java.lang.String, java.lang.String, java.lang.String[], java.lang.String[])

public ImageReaderWriterSpi(String sample code for java.lang.String definition code for java.lang.String  vendorName,
                            String sample code for java.lang.String definition code for java.lang.String  version,
                            String sample code for java.lang.String definition code for java.lang.String [] names,
                            String sample code for java.lang.String definition code for java.lang.String [] suffixes,
                            String sample code for java.lang.String definition code for java.lang.String [] MIMETypes,
                            String sample code for java.lang.String definition code for java.lang.String  pluginClassName,
                            boolean supportsStandardStreamMetadataFormat,
                            String sample code for java.lang.String definition code for java.lang.String  nativeStreamMetadataFormatName,
                            String sample code for java.lang.String definition code for java.lang.String  nativeStreamMetadataFormatClassName,
                            String sample code for java.lang.String definition code for java.lang.String [] extraStreamMetadataFormatNames,
                            String sample code for java.lang.String definition code for java.lang.String [] extraStreamMetadataFormatClassNames,
                            boolean supportsStandardImageMetadataFormat,
                            String sample code for java.lang.String definition code for java.lang.String  nativeImageMetadataFormatName,
                            String sample code for java.lang.String definition code for java.lang.String  nativeImageMetadataFormatClassName,
                            String sample code for java.lang.String definition code for java.lang.String [] extraImageMetadataFormatNames,
                            String sample code for java.lang.String definition code for java.lang.String [] extraImageMetadataFormatClassNames)
Constructs an ImageReaderWriterSpi with a given set of values.

Parameters:
vendorName - the vendor name, as a non-null String.
version - a version identifier, as a non-null String.
names - a non-null array of Strings indicating the format names. At least one entry must be present.
suffixes - an array of Strings indicating the common file suffixes. If no suffixes are defined, null should be supplied. An array of length 0 will be normalized to null.
MIMETypes - an array of Strings indicating the format's MIME types. If no MIME types are defined, null should be supplied. An array of length 0 will be normalized to null.
pluginClassName - the fully-qualified name of the associated ImageReader or ImageWriter class, as a non-null String.
supportsStandardStreamMetadataFormat - a boolean that indicates whether a stream metadata object can use trees described by the standard metadata format.
nativeStreamMetadataFormatName - a String, or null, to be returned from getNativeStreamMetadataFormatName.
nativeStreamMetadataFormatClassName - a String, or null, to be used to instantiate a metadata format object to be returned from getNativeStreamMetadataFormat.
extraStreamMetadataFormatNames - an array of Strings, or null, to be returned from getExtraStreamMetadataFormatNames. An array of length 0 is normalized to null.
extraStreamMetadataFormatClassNames - an array of Strings, or null, to be used to instantiate a metadata format object to be returned from getStreamMetadataFormat. An array of length 0 is normalized to null.
supportsStandardImageMetadataFormat - a boolean that indicates whether an image metadata object can use trees described by the standard metadata format.
nativeImageMetadataFormatName - a String, or null, to be returned from getNativeImageMetadataFormatName.
nativeImageMetadataFormatClassName - a String, or null, to be used to instantiate a metadata format object to be returned from getNativeImageMetadataFormat.
extraImageMetadataFormatNames - an array of Strings to be returned from getExtraImageMetadataFormatNames. An array of length 0 is normalized to null.
extraImageMetadataFormatClassNames - an array of Strings, or null, to be used to instantiate a metadata format object to be returned from getImageMetadataFormat. An array of length 0 is normalized to null.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if vendorName is null.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if version is null.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if names is null or has length 0.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if pluginClassName is null.

ImageReaderWriterSpi sample code for javax.imageio.spi.ImageReaderWriterSpi() definition code for javax.imageio.spi.ImageReaderWriterSpi()

public ImageReaderWriterSpi()
Constructs a blank ImageReaderWriterSpi. It is up to the subclass to initialize instance variables and/or override method implementations in order to provide working versions of all methods.

Method Detail

getFormatNames sample code for javax.imageio.spi.ImageReaderWriterSpi.getFormatNames() definition code for javax.imageio.spi.ImageReaderWriterSpi.getFormatNames()

public String sample code for java.lang.String definition code for java.lang.String [] getFormatNames()
Returns an array of Strings containing human-readable names for the formats that are generally usable by the ImageReader or ImageWriter implementation associated with this service provider. For example, a single ImageReader might be able to process both PBM and PNM files.

Returns:
a non-null array of Strings or length at least 1 containing informal format names associated with this reader or writer.

getFileSuffixes sample code for javax.imageio.spi.ImageReaderWriterSpi.getFileSuffixes() definition code for javax.imageio.spi.ImageReaderWriterSpi.getFileSuffixes()

public String sample code for java.lang.String definition code for java.lang.String [] getFileSuffixes()
Returns an array of Strings containing a list of file suffixes associated with the formats that are generally usable by the ImageReader or ImageWriter implementation associated with this service provider. For example, a single ImageReader might be able to process files with '.pbm' and '.pnm' suffixes, or both '.jpg' and '.jpeg' suffixes. If there are no known file suffixes, null will be returned.

Returning a particular suffix does not guarantee that files with that suffix can be processed; it merely indicates that it may be worthwhile attempting to decode or encode such files using thi