FileDocCategorySizeDatePackage
OutputStreamImageOutputStreamSpi.javaAPI DocJava SE 5 API1828Fri Aug 26 14:54:44 BST 2005com.sun.imageio.spi

OutputStreamImageOutputStreamSpi

public class OutputStreamImageOutputStreamSpi extends ImageOutputStreamSpi

Fields Summary
private static final String
vendorName
private static final String
version
private static final Class
outputClass
Constructors Summary
public OutputStreamImageOutputStreamSpi()


      
        super(vendorName, version, outputClass);
    
Methods Summary
public booleancanUseCacheFile()

        return true;
    
public javax.imageio.stream.ImageOutputStreamcreateOutputStreamInstance(java.lang.Object output, boolean useCache, java.io.File cacheDir)

        if (output instanceof OutputStream) {
            OutputStream os = (OutputStream)output;
            if (useCache) {
                return new FileCacheImageOutputStream(os, cacheDir);
            } else {
                return new MemoryCacheImageOutputStream(os);
            }
        } else {
            throw new IllegalArgumentException();
        }
    
public java.lang.StringgetDescription(java.util.Locale locale)

        return "Service provider that instantiates an OutputStreamImageOutputStream from an OutputStream";
    
public booleanneedsCacheFile()

        return false;