|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object![]()
![]()
![]()
javax.imageio.spi.IIOServiceProvider
![]()
![]()
![]()
javax.imageio.spi.ImageReaderWriterSpi

, ImageWriterSpi

public abstract class ImageReaderWriterSpi

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

| Field Summary | |
|---|---|
protected String |
extraImageMetadataFormatClassNames
An array of Strings containing the class names of
any additional image metadata formats supported by this
plug-in, initially null. |
protected String |
extraImageMetadataFormatNames
An array of Strings containing the names of any
additional image metadata formats supported by this plug-in,
initially null. |
protected String |
extraStreamMetadataFormatClassNames
An array of Strings containing the class names of
any additional stream metadata formats supported by this plug-in,
initially null. |
protected String |
extraStreamMetadataFormatNames
An array of Strings containing the names of any
additional stream metadata formats supported by this plug-in,
initially null. |
protected String |
MIMETypes
An array of strings to be returned from getMIMETypes, initially null. |
protected String |
names
An array of strings to be returned from getFormatNames, initially null. |
protected String |
nativeImageMetadataFormatClassName
A String containing the class name of the
native stream metadata format supported by this plug-in,
initially null. |
protected String |
nativeImageMetadataFormatName
A String containing the name of the
native stream metadata format supported by this plug-in,
initially null. |
protected String |
nativeStreamMetadataFormatClassName
A String containing the class name of the native
stream metadata format supported by this plug-in, initially
null. |
protected String |
nativeStreamMetadataFormatName
A String containing the name of the native stream
metadata format supported by this plug-in, initially
null. |
protected String |
pluginClassName
A String containing the name of the associated
plug-in class, initially null. |
protected String |
suffixes
An array of strings to be returned from getFileSuffixes, initially null. |
protected boolean |
supportsStandardImageMetadataFormat
A boolean indicating whether this plug-in supports the standard metadata format for image metadata, initially false. |
protected boolean |
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 ![]() |
|---|
vendorName |
| Constructor Summary | |
|---|---|
ImageReaderWriterSpi
Constructs a blank ImageReaderWriterSpi. |
|
ImageReaderWriterSpi
Constructs an ImageReaderWriterSpi with a given
set of values. |
|
| Method Summary | |
|---|---|
String |
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 |
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 |
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 |
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 |
getImageMetadataFormat
Returns an IIOMetadataFormat object describing the
given image metadata format, or null if no
description is available. |
String |
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 |
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 |
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 |
getPluginClassName
Returns the fully-qualified class name of the ImageReader or ImageWriter plug-in
associated with this service provider. |
IIOMetadataFormat |
getStreamMetadataFormat
Returns an IIOMetadataFormat object describing the
given stream metadata format, or null if no
description is available. |
boolean |
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
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 ![]() |
|---|
getDescription |
Methods inherited from class java.lang.Object ![]() |
|---|
clone |
| Field Detail |
|---|

protected String![]()
![]()
[] names
getFormatNames, initially null.
Constructors should set this to a non-null value.

protected String![]()
![]()
[] suffixes
getFileSuffixes, initially null.

protected String![]()
![]()
[] MIMETypes
getMIMETypes, initially null.

protected String![]()
![]()
pluginClassName
String containing the name of the associated
plug-in class, initially null.

protected boolean supportsStandardStreamMetadataFormat
false.

protected String![]()
![]()
nativeStreamMetadataFormatName
String containing the name of the native stream
metadata format supported by this plug-in, initially
null.

protected String![]()
![]()
nativeStreamMetadataFormatClassName
String containing the class name of the native
stream metadata format supported by this plug-in, initially
null.

protected String![]()
![]()
[] extraStreamMetadataFormatNames
Strings containing the names of any
additional stream metadata formats supported by this plug-in,
initially null.

protected String![]()
![]()
[] extraStreamMetadataFormatClassNames
Strings containing the class names of
any additional stream metadata formats supported by this plug-in,
initially null.

protected boolean supportsStandardImageMetadataFormat
false.

protected String![]()
![]()
nativeImageMetadataFormatName
String containing the name of the
native stream metadata format supported by this plug-in,
initially null.

protected String![]()
![]()
nativeImageMetadataFormatClassName
String containing the class name of the
native stream metadata format supported by this plug-in,
initially null.

protected String![]()
![]()
[] extraImageMetadataFormatNames
Strings containing the names of any
additional image metadata formats supported by this plug-in,
initially null.

protected String![]()
![]()
[] extraImageMetadataFormatClassNames
Strings containing the class names of
any additional image metadata formats supported by this
plug-in, initially null.
| Constructor Detail |
|---|

public ImageReaderWriterSpi(String![]()
![]()
vendorName, String
![]()
![]()
version, String
![]()
![]()
[] names, String
![]()
![]()
[] suffixes, String
![]()
![]()
[] MIMETypes, String
![]()
![]()
pluginClassName, boolean supportsStandardStreamMetadataFormat, String
![]()
![]()
nativeStreamMetadataFormatName, String
![]()
![]()
nativeStreamMetadataFormatClassName, String
![]()
![]()
[] extraStreamMetadataFormatNames, String
![]()
![]()
[] extraStreamMetadataFormatClassNames, boolean supportsStandardImageMetadataFormat, String
![]()
![]()
nativeImageMetadataFormatName, String
![]()
![]()
nativeImageMetadataFormatClassName, String
![]()
![]()
[] extraImageMetadataFormatNames, String
![]()
![]()
[] extraImageMetadataFormatClassNames)
ImageReaderWriterSpi with a given
set of values.
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.
IllegalArgumentException

- if vendorName
is null.
IllegalArgumentException

- if version
is null.
IllegalArgumentException

- if names
is null or has length 0.
IllegalArgumentException

- if pluginClassName
is null.

public ImageReaderWriterSpi()
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 |
|---|

public String![]()
![]()
[] getFormatNames()
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.
null array of Strings
or length at least 1 containing informal format names
associated with this reader or writer.

public String![]()
![]()
[] getFileSuffixes()
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