Methods Summary |
---|
public boolean | canUseCacheFile()Returns true if the ImageInputStream can use a cache file. If this method
returns false, the value of the useCache parameter of
createInputStreamInstance will be ignored. The default implementation
returns false.
return false; // -- def
|
public abstract javax.imageio.stream.ImageInputStream | createInputStreamInstance(java.lang.Object input, boolean useCache, java.io.File cacheDir)Creates the ImageInputStream associated with this service provider. The
input object should be an instance of the class returned by the
getInputClass method. This method uses the specified directory for the
cache file if the useCache parameter is true.
|
public javax.imageio.stream.ImageInputStream | createInputStreamInstance(java.lang.Object input)Creates the ImageInputStream associated with this service provider. The
input object should be an instance of the class returned by getInputClass
method. This method uses the default system directory for the cache file,
if it is needed.
return createInputStreamInstance(input, true, null);
|
public java.lang.Class | getInputClass()Gets an input Class object that represents class or interface that must
be implemented by an input source.
return inputClass;
|
public boolean | needsCacheFile()Returns true if the ImageInputStream implementation requires the use of a
cache file. The default implementation returns false.
return false; // def
|