public abstract class ImageReaderWriterSpi extends IIOServiceProvider
ImageReaderSpi and ImageWriterSpi.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String[] |
extraImageMetadataFormatClassNames |
protected java.lang.String[] |
extraImageMetadataFormatNames
|
protected java.lang.String[] |
extraStreamMetadataFormatClassNames |
protected java.lang.String[] |
extraStreamMetadataFormatNames
|
protected java.lang.String[] |
MIMETypes
The MIME types of the supported image formats.
|
protected java.lang.String[] |
names
The human-readable, localized names of the supported image
formats.
|
protected java.lang.String |
nativeImageMetadataFormatClassName |
protected java.lang.String |
nativeImageMetadataFormatName
The name of the format that allows encoding all image metadata
without loss, or
null if this plug-in does not
provide a format that preserves all image metadata. |
protected java.lang.String |
nativeStreamMetadataFormatClassName |
protected java.lang.String |
nativeStreamMetadataFormatName
The name of the format that allows encoding all stream metadata
without loss, or
null if this plug-in does not
provide a format that preserves all stream metadata. |
protected java.lang.String |
pluginClassName
The fully qualified name of the class that implements the
ImageReader or ImageWriter
interface. |
protected java.lang.String[] |
suffixes
The file suffixes of the supported image formats.
|
protected boolean |
supportsStandardImageMetadataFormat
Indicates whether the per-image metadata objects associated
with this plug-in support format
“javax_imageio_1.0” in their
getAsTree and setAsTree methods. |
protected boolean |
supportsStandardStreamMetadataFormat
Indicates whether the per-stream metadata objects associated
with this plug-in support format
“javax_imageio_1.0” in their
getAsTree and setAsTree methods. |
vendorName, version| Constructor and Description |
|---|
ImageReaderWriterSpi()
Constructs an
ImageReaderWriteSpi instance, without
specifying a number of parameters. |
ImageReaderWriterSpi(java.lang.String vendorName,
java.lang.String version,
java.lang.String[] names,
java.lang.String[] suffixes,
java.lang.String[] MIMETypes,
java.lang.String pluginClassName,
boolean supportsStandardStreamMetadataFormat,
java.lang.String nativeStreamMetadataFormatName,
java.lang.String nativeStreamMetadataFormatClassName,
java.lang.String[] extraStreamMetadataFormatNames,
java.lang.String[] extraStreamMetadataFormatClassNames,
boolean supportsStandardImageMetadataFormat,
java.lang.String nativeImageMetadataFormatName,
java.lang.String nativeImageMetadataFormatClassName,
java.lang.String[] extraImageMetadataFormatNames,
java.lang.String[] extraImageMetadataFormatClassNames)
Constructs an
ImageReaderWriteSpi instance,
specifying a number of parameters. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getExtraImageMetadataFormatNames()
|
java.lang.String[] |
getExtraStreamMetadataFormatNames()
|
java.lang.String[] |
getFileSuffixes()
Returns the file suffixes of the supported image formats, for
example
[“tiff”, “tif”,
“png”]. |
java.lang.String[] |
getFormatNames()
Returns the human-readable, localized names of the supported
image formats.
|
javax.imageio.metadata.IIOMetadataFormat |
getImageMetadataFormat(java.lang.String formatName)
Returns an IIOMetadataFormat object that represents the requested
image metadata format or null if the given format is supported
but no IIOMetadataFormat can be created for it.
|
java.lang.String[] |
getMIMETypes()
Returns the MIME types of the supported image formats, for
example
[“image/tiff”,
“image/png”]. |
java.lang.String |
getNativeImageMetadataFormatName()
Returns the name of the format that allows encoding all image
metadata without loss, or
null if this plug-in does
not provide a format that preserves all image metadata. |
java.lang.String |
getNativeStreamMetadataFormatName()
Returns the name of the format that allows encoding all stream
metadata without loss, or
null if this plug-in does
not provide a format that preserves all stream metadata. |
java.lang.String |
getPluginClassName()
Returns the fully qualified name of the class that implements the
ImageReader or ImageWriter interface. |
javax.imageio.metadata.IIOMetadataFormat |
getStreamMetadataFormat(java.lang.String formatName)
Returns an IIOMetadataFormat object that represents the requested
stream metadata format or null if the given format is supported
but no IIOMetadataFormat can be created for it.
|
boolean |
isStandardImageMetadataFormatSupported()
Returns whether the per-image metadata objects associated
with this plug-in support format
“javax_imageio_1.0” in their
getAsTree and setAsTree methods. |
boolean |
isStandardStreamMetadataFormatSupported()
Returns whether the per-stream metadata objects associated
with this plug-in support format
“javax_imageio_1.0” in their
getAsTree and setAsTree methods. |
getDescription, getVendorName, getVersion, onDeregistration, onRegistrationprotected java.lang.String[] names
null after
construction.getFormatNames()protected java.lang.String[] suffixes
null after construction.getFileSuffixes()protected java.lang.String[] MIMETypes
null after construction.getMIMETypes()protected java.lang.String pluginClassName
ImageReader or ImageWriter
interface. This value should be non-null after
construction.getPluginClassName()protected boolean supportsStandardStreamMetadataFormat
“javax_imageio_1.0” in their
getAsTree and setAsTree methods.protected java.lang.String nativeStreamMetadataFormatName
null if this plug-in does not
provide a format that preserves all stream metadata.protected java.lang.String nativeStreamMetadataFormatClassName
protected java.lang.String[] extraStreamMetadataFormatNames
protected java.lang.String[] extraStreamMetadataFormatClassNames
protected boolean supportsStandardImageMetadataFormat
“javax_imageio_1.0” in their
getAsTree and setAsTree methods.protected java.lang.String nativeImageMetadataFormatName
null if this plug-in does not
provide a format that preserves all image metadata.protected java.lang.String nativeImageMetadataFormatClassName
protected java.lang.String[] extraImageMetadataFormatNames
protected java.lang.String[] extraImageMetadataFormatClassNames
public ImageReaderWriterSpi()
ImageReaderWriteSpi instance, without
specifying a number of parameters. Constructors of concrete
subclasses must ensure that they set all inherited fields to
meaningful values.public ImageReaderWriterSpi(java.lang.String vendorName, java.lang.String version, java.lang.String[] names, java.lang.String[] suffixes, java.lang.String[] MIMETypes, java.lang.String pluginClassName, boolean supportsStandardStreamMetadataFormat, java.lang.String nativeStreamMetadataFormatName, java.lang.String nativeStreamMetadataFormatClassName, java.lang.String[] extraStreamMetadataFormatNames, java.lang.String[] extraStreamMetadataFormatClassNames, boolean supportsStandardImageMetadataFormat, java.lang.String nativeImageMetadataFormatName, java.lang.String nativeImageMetadataFormatClassName, java.lang.String[] extraImageMetadataFormatNames, java.lang.String[] extraImageMetadataFormatClassNames)
ImageReaderWriteSpi instance,
specifying a number of parameters.names - the human-readable, localized names of the supported
image formats, for example [“Tagged Image File
Format”, “Portable Network
Graphics”].suffixes - the file suffixes of the supported image formats,
for example [“tiff”, “tif”,
“png”].MIMETypes - the MIME types of the supported image formats,
for example [“image/tiff”,
“image/png”].pluginClassName - the fully qualified name of the class that
implements the ImageReader or ImageWriter interface.supportsStandardStreamMetadataFormat - whether the
per-stream metadata objects associated with this plug-in support format
“javax_imageio_1.0” in their
getAsTree and setAsTree methods.nativeStreamMetadataFormatName - the name of the format that
allows encoding all stream metadata without loss, or
null if this plug-in does not provide a format that
preserves all stream metadata.extraStreamMetadataFormatNames - the names of additional
formats for encoding stream metadata, other than the standard and the
native formats,
or null if this plug-in does not provide any extra
formats.supportsStandardImageMetadataFormat - whether the per-image
metadata objects
associated with this plug-in support format
“javax_imageio_1.0” in their
getAsTree and setAsTree methods.nativeImageMetadataFormatName - the name of the format that
allows encoding all image metadata without loss, or
null if this plug-in does not provide a format that
preserves all image metadata.extraImageMetadataFormatNames - the names of additional
formats for encoding image metadata, other than the standard and the
native formats,
or null if this plug-in does not provide any extra
formats.java.lang.IllegalArgumentException - if vendorName
or version is null.public java.lang.String[] getFormatNames()
[“Tagged Image File Format”,
“Portable Network Graphics”].public java.lang.String[] getFileSuffixes()
[“tiff”, “tif”,
“png”].public java.lang.String[] getMIMETypes()
[“image/tiff”,
“image/png”].null if
none of the supported formats has an associated MIME type.public java.lang.String getPluginClassName()
ImageReader or ImageWriter interface.public boolean isStandardStreamMetadataFormatSupported()
“javax_imageio_1.0” in their
getAsTree and setAsTree methods.public java.lang.String getNativeStreamMetadataFormatName()
null if this plug-in does
not provide a format that preserves all stream metadata.getNativeImageMetadataFormatName()public java.lang.String[] getExtraStreamMetadataFormatNames()
null if this plug-in does not provide any extra
formats.getExtraImageMetadataFormatNames()public boolean isStandardImageMetadataFormatSupported()
“javax_imageio_1.0” in their
getAsTree and setAsTree methods.public java.lang.String getNativeImageMetadataFormatName()
null if this plug-in does
not provide a format that preserves all image metadata.getNativeStreamMetadataFormatName()public java.lang.String[] getExtraImageMetadataFormatNames()
null if this plug-in does not provide any extra
formats.getExtraStreamMetadataFormatNames()public javax.imageio.metadata.IIOMetadataFormat getStreamMetadataFormat(java.lang.String formatName)
formatName - the requested stream metadata format namejava.lang.IllegalArgumentException - if formatName is null or is not
one of the standard metadata format or this provider's native or
extra stream metadata formatspublic javax.imageio.metadata.IIOMetadataFormat getImageMetadataFormat(java.lang.String formatName)
formatName - the requested image metadata format namejava.lang.IllegalArgumentException - if formatName is null or is not
one of the standard metadata format or this provider's native or
extra image metadata formats