API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.imageio.spi. ImageWriterSpi View Source
Author(s)
Since
Version
0.5
Serial
Hierarchy
 Object
      IIOServiceProvider
          ImageReaderWriterSpi
              ImageWriterSpi
Implements
Subclasses
Description
publicabstract abstract class ImageWriterSpi
  The service provider interface (SPI) for ImageWriters.
Constructors
protected ImageWriterSpi ()
  Constructs a blank ImageWriterSpi.
public ImageWriterSpi (String vendorName, String version, String names, String suffixes, String MIMETypes, String writerClassName, Class outputTypes, String readerSpiNames, boolean supportsStandardStreamMetadataFormat, String nativeStreamMetadataFormatName, String nativeStreamMetadataFormatClassName, String extraStreamMetadataFormatNames, String extraStreamMetadataFormatClassNames, boolean supportsStandardImageMetadataFormat, String nativeImageMetadataFormatName, String nativeImageMetadataFormatClassName, String extraImageMetadataFormatNames, String extraImageMetadataFormatClassNames)
  Constructs an ImageWriterSpi with a given set of values.
Methods
Hide/Show inherited methods
publicabstract boolean canEncodeImage (ImageTypeSpecifier type)
  Returns true if the ImageWriter implementation associated with this service provider is able to encode an image with the given layout.
public boolean canEncodeImage (RenderedImage im)
  Returns true if the ImageWriter implementation associated with this service provider is able to encode the given RenderedImage instance.
public ImageWriter createWriterInstance () throws IOException
  Returns an instance of the ImageWriter implementation associated with this service provider.
publicabstract ImageWriter createWriterInstance (Object extension) throws IOException
  Returns an instance of the ImageWriter implementation associated with this service provider.
publicabstract String getDescription (Locale locale) [Inherited From IIOServiceProvider]
  Returns a brief, human-readable description of this service provider and its associated implementation.
public String getExtraImageMetadataFormatNames () [Inherited From ImageReaderWriterSpi]
  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.
public String getExtraStreamMetadataFormatNames () [Inherited From ImageReaderWriterSpi]
  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.
public String getFileSuffixes () [Inherited From ImageReaderWriterSpi]
  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.
public String getFormatNames () [Inherited From ImageReaderWriterSpi]
  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.
public IIOMetadataFormat getImageMetadataFormat (String formatName) [Inherited From ImageReaderWriterSpi]
  Returns an IIOMetadataFormat object describing the given image metadata format, or null if no description is available.
public String getImageReaderSpiNames ()
  Returns an array of Strings containing all the fully qualified names of all the ImageReaderSpi classes that can understand the internal metadata representation used by the ImageWriter associated with this service provider, or null if there are no such ImageReaders specified.
public String getMIMETypes () [Inherited From ImageReaderWriterSpi]
  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.
public String getNativeImageMetadataFormatName () [Inherited From ImageReaderWriterSpi]
  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.
public String getNativeStreamMetadataFormatName () [Inherited From ImageReaderWriterSpi]
  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.
public Class getOutputTypes ()
  Returns an array of Class objects indicating what types of objects may be used as arguments to the writer's setOutput method.
public String getPluginClassName () [Inherited From ImageReaderWriterSpi]
  Returns the fully-qualified class name of the ImageReader or ImageWriter plug-in associated with this service provider.
public IIOMetadataFormat getStreamMetadataFormat (String formatName) [Inherited From ImageReaderWriterSpi]
  Returns an IIOMetadataFormat object describing the given stream metadata format, or null if no description is available.
public String getVendorName () [Inherited From IIOServiceProvider]
  Returns the name of the vendor responsible for creating this service provider and its associated implementation.
public String getVersion () [Inherited From IIOServiceProvider]
  Returns a string describing the version number of this service provider and its associated implementation.
public boolean isFormatLossless ()
  Returns true if the format that this writer outputs preserves pixel data bit-accurately.
public boolean isOwnWriter (ImageWriter writer)
  Returns true if the ImageWriter object passed in is an instance of the ImageWriter associated with this service provider.
public boolean isStandardImageMetadataFormatSupported () [Inherited From ImageReaderWriterSpi]
  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.
public boolean isStandardStreamMetadataFormatSupported () [Inherited From ImageReaderWriterSpi]
  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.
public void onDeregistration (ServiceRegistry registry, Class<Object> category) [Inherited From IIOServiceProvider]
  A callback that will be whenever the Spi class has been deregistered from a ServiceRegistry.
public void onRegistration (ServiceRegistry registry, Class<Object> category) [Inherited From IIOServiceProvider]
  A callback that will be called exactly once after the Spi class has been instantiated and registered in a ServiceRegistry.
Fields
Hide/Show inherited fields
protected String extraImageMetadataFormatClassNames [Inherited From ImageReaderWriterSpi]
An array of Strings containing the class names of any additional image metadata formats supported by this plug-in, initially null.
protected String extraImageMetadataFormatNames [Inherited From ImageReaderWriterSpi]
An array of Strings containing the names of any additional image metadata formats supported by this plug-in, initially null.
protected String extraStreamMetadataFormatClassNames [Inherited From ImageReaderWriterSpi]
An array of Strings containing the class names of any additional stream metadata formats supported by this plug-in, initially null.
protected String extraStreamMetadataFormatNames [Inherited From ImageReaderWriterSpi]
An array of Strings containing the names of any additional stream metadata formats supported by this plug-in, initially null.
protected String MIMETypes [Inherited From ImageReaderWriterSpi]
An array of strings to be returned from getMIMETypes, initially null.
protected String names [Inherited From ImageReaderWriterSpi]
  An array of strings to be returned from getFormatNames, initially null.
protected String nativeImageMetadataFormatClassName [Inherited From ImageReaderWriterSpi]
A String containing the class name of the native stream metadata format supported by this plug-in, initially null.
protected String nativeImageMetadataFormatName [Inherited From ImageReaderWriterSpi]
A String containing the name of the native stream metadata format supported by this plug-in, initially null.
protected String nativeStreamMetadataFormatClassName [Inherited From ImageReaderWriterSpi]
A String containing the class name of the native stream metadata format supported by this plug-in, initially null.
protected String nativeStreamMetadataFormatName [Inherited From ImageReaderWriterSpi]
A String containing the name of the native stream metadata format supported by this plug-in, initially null.
protected Class outputTypes
An array of Class objects to be returned from getOutputTypes, initially null.
protected String pluginClassName [Inherited From ImageReaderWriterSpi]
A String containing the name of the associated plug-in class, initially null.
protected String readerSpiNames
An array of strings to be returned from getImageReaderSpiNames, initially null.
publicfinalstatic Class STANDARD_OUTPUT_TYPE
A single-element array, initially containing ImageInputStream.class, to be returned from getInputTypes.
protected String suffixes [Inherited From ImageReaderWriterSpi]
An array of strings to be returned from getFileSuffixes, initially null.
protected boolean supportsStandardImageMetadataFormat [Inherited From ImageReaderWriterSpi]
A boolean indicating whether this plug-in supports the standard metadata format for image metadata, initially false.
protected boolean supportsStandardStreamMetadataFormat [Inherited From ImageReaderWriterSpi]
A boolean indicating whether this plug-in supports the standard metadata format for stream metadata, initially false.
protected String vendorName [Inherited From IIOServiceProvider]
  A String to be returned from getVendorName, initially null.
protected String version [Inherited From IIOServiceProvider]
  A String to be returned from getVersion, initially null.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar