javax.imageio.spi
public abstract class ImageOutputStreamSpi extends IIOServiceProvider
Since: 1.4
| Field Summary | |
|---|---|
| protected Class<?> | outputClass
Indicates which kind of output is produced by the streams
created by {@link #createOutputStreamInstance(Object)}. |
| Constructor Summary | |
|---|---|
| protected | ImageOutputStreamSpi()
Constructs a service provider for image output streams, given no
parameters. |
| ImageOutputStreamSpi(String vendorName, String version, Class<?> outputClass)
Constructs a service provider for image output streams, given the
vendor name, a version string and the kind of producable output.
| |
| Method Summary | |
|---|---|
| boolean | canUseCacheFile()
Determines whether ImageOutputStreams created
by this service provider benefit from using a cache file.
|
| abstract ImageOutputStream | createOutputStreamInstance(Object output, boolean useCache, File cacheDir) |
| ImageOutputStream | createOutputStreamInstance(Object output) |
| Class<?> | getOutputClass()
Determines which kind of output is produced by the streams
created by {@link #createOutputStreamInstance(Object)}. |
| boolean | needsCacheFile()
Determines whether ImageOutputStreams created
by this service provider require the use of a cache file.
|
Throws: IllegalArgumentException if vendorName
or version is null.
ImageOutputStreams created
by this service provider benefit from using a cache file.
The default behavior is to return false.
Returns: true if the created streams are faster or
need less memory when a cache file is being used;
false if no positive effect results from the cache
file.
ImageOutputStreams created
by this service provider require the use of a cache file.
The default behavior is to return false.
Returns: true if the created streams can only work
when a cache file is being used; false if no cache
file is needed.