FileDocCategorySizeDatePackage
GIFImageReaderSpi.javaAPI DocJava SE 5 API2369Fri Aug 26 14:54:42 BST 2005com.sun.imageio.plugins.gif

GIFImageReaderSpi

public class GIFImageReaderSpi extends ImageReaderSpi
version
0.5

Fields Summary
private static final String
vendorName
private static final String
version
private static final String[]
names
private static final String[]
suffixes
private static final String[]
MIMETypes
private static final String
readerClassName
private static final String[]
writerSpiNames
Constructors Summary
public GIFImageReaderSpi()


      
        super(vendorName,
              version,
              names,
              suffixes,
              MIMETypes,
              readerClassName,
              STANDARD_INPUT_TYPE,
              writerSpiNames,
              true,
              GIFStreamMetadata.nativeMetadataFormatName,
              "com.sun.imageio.plugins.gif.GIFStreamMetadataFormat",
              null, null,
              true,
              GIFImageMetadata.nativeMetadataFormatName,
              "com.sun.imageio.plugins.gif.GIFImageMetadataFormat",
              null, null
              );
    
Methods Summary
public booleancanDecodeInput(java.lang.Object input)

        if (!(input instanceof ImageInputStream)) {
            return false;
        }
        
        ImageInputStream stream = (ImageInputStream)input;
        byte[] b = new byte[6];
        stream.mark();
        stream.readFully(b);
        stream.reset();

        return b[0] == 'G" && b[1] == 'I" && b[2] == 'F" && b[3] == '8" &&
            (b[4] == '7" || b[4] == '9") && b[5] == 'a";
    
public javax.imageio.ImageReadercreateReaderInstance(java.lang.Object extension)

        return new GIFImageReader(this);
    
public java.lang.StringgetDescription(java.util.Locale locale)

        return "Standard GIF image reader";