public class

FileImageInputStreamSpi

extends ImageInputStreamSpi
java.lang.Object
   ↳ javax.imageio.spi.IIOServiceProvider
     ↳ javax.imageio.spi.ImageInputStreamSpi
       ↳ com.sun.imageio.spi.FileImageInputStreamSpi

Summary

[Expand]
Inherited Fields
From class javax.imageio.spi.ImageInputStreamSpi
From class javax.imageio.spi.IIOServiceProvider
Public Constructors
FileImageInputStreamSpi()
Public Methods
ImageInputStream createInputStreamInstance(Object input, boolean useCache, File cacheDir)
Returns an instance of the ImageInputStream implementation associated with this service provider.
String getDescription(Locale locale)
Returns a brief, human-readable description of this service provider and its associated implementation.
[Expand]
Inherited Methods
From class javax.imageio.spi.ImageInputStreamSpi
From class javax.imageio.spi.IIOServiceProvider
From class java.lang.Object
From interface javax.imageio.spi.RegisterableService

Public Constructors

public FileImageInputStreamSpi ()

Public Methods

public ImageInputStream createInputStreamInstance (Object input, boolean useCache, File cacheDir)

Returns an instance of the ImageInputStream implementation associated with this service provider. If the use of a cache file is optional, the useCache parameter will be consulted. Where a cache is required, or not applicable, the value of useCache will be ignored.

Parameters
input an object of the class type returned by getInputClass.
useCache a boolean indicating whether a cache file should be used, in cases where it is optional.
cacheDir a File indicating where the cache file should be created, or null to use the system directory.
Returns
  • an ImageInputStream instance.

public String getDescription (Locale locale)

Returns a brief, human-readable description of this service provider and its associated implementation. The resulting string should be localized for the supplied Locale, if possible.

Parameters
locale a Locale for which the return value should be localized.
Returns
  • a String containing a description of this service provider.