FileDocCategorySizeDatePackage
BMPImageReaderSpi.javaAPI DocJava SE 5 API2236Fri Aug 26 14:54:42 BST 2005com.sun.imageio.plugins.bmp

BMPImageReaderSpi

public class BMPImageReaderSpi extends ImageReaderSpi

Fields Summary
private static String[]
writerSpiNames
private static String[]
formatNames
private static String[]
entensions
private static String[]
mimeType
private boolean
registered
Constructors Summary
public BMPImageReaderSpi()


      
        super("Sun Microsystems, Inc.",
              "1.0",
              formatNames,
              entensions,
              mimeType,
              "com.sun.imageio.plugins.bmp.BMPImageReader",
              STANDARD_INPUT_TYPE,
              writerSpiNames,
              false,
              null, null, null, null,
              true,
              BMPMetadata.nativeMetadataFormatName,
              "com.sun.imageio.plugins.bmp.BMPMetadataFormat",
              null, null);
    
Methods Summary
public booleancanDecodeInput(java.lang.Object source)

        if (!(source instanceof ImageInputStream)) {
            return false;
        }

        ImageInputStream stream = (ImageInputStream)source;
        byte[] b = new byte[2];
        stream.mark();
        stream.readFully(b);
        stream.reset();

        return (b[0] == 0x42) && (b[1] == 0x4d);
    
public javax.imageio.ImageReadercreateReaderInstance(java.lang.Object extension)

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

        return "Standard BMP Image Reader";
    
public voidonRegistration(javax.imageio.spi.ServiceRegistry registry, java.lang.Class category)

        if (registered) {
            return;
        }
        registered = true;