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

RAFImageInputStreamSpi

public class RAFImageInputStreamSpi extends ImageInputStreamSpi

Fields Summary
private static final String
vendorName
private static final String
version
private static final Class
inputClass
Constructors Summary
public RAFImageInputStreamSpi()


      
        super(vendorName, version, inputClass);
    
Methods Summary
public javax.imageio.stream.ImageInputStreamcreateInputStreamInstance(java.lang.Object input, boolean useCache, java.io.File cacheDir)

        if (input instanceof RandomAccessFile) {
            try {
                return new FileImageInputStream((RandomAccessFile)input);
            } catch (Exception e) {
                return null;
            }
        } else {
            throw new IllegalArgumentException
                ("input not a RandomAccessFile!");
        }
    
public java.lang.StringgetDescription(java.util.Locale locale)

        return "Service provider that instantiates a FileImageInputStream from a RandomAccessFile";