FileDocCategorySizeDatePackage
OutputStreamIOSSpi.javaAPI DocAndroid 1.5 API2135Wed May 06 22:41:54 BST 2009org.apache.harmony.x.imageio.spi

OutputStreamIOSSpi

public class OutputStreamIOSSpi extends ImageOutputStreamSpi

Fields Summary
private static final String
vendor
private static final String
ver
Constructors Summary
public OutputStreamIOSSpi()


      
        super(vendor, ver, OutputStream.class);
    
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) {
            if (useCache) {
                return new FileCacheImageOutputStream((OutputStream) output, cacheDir);
            } else {
                return new MemoryCacheImageOutputStream((OutputStream) output);
            }
        }
        throw new IllegalArgumentException("Output is not an instance of OutputStream");
    
public java.lang.StringgetDescription(java.util.Locale locale)

        return "Output Stream IOS Spi";