FileDocCategorySizeDatePackage
WBMPImageWriterSpi.javaAPI DocJava SE 5 API2182Fri Aug 26 14:54:44 BST 2005com.sun.imageio.plugins.wbmp

WBMPImageWriterSpi

public class WBMPImageWriterSpi extends ImageWriterSpi

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


      
        super("Sun Microsystems, Inc.",
              "1.0",
              formatNames,
              entensions,
              mimeType,
              "com.sun.imageio.plugins.wbmp.WBMPImageWriter",
              STANDARD_OUTPUT_TYPE,
              readerSpiNames,
              true,
              null, null, null, null,
              true,
              null, null, null, null);
    
Methods Summary
public booleancanEncodeImage(javax.imageio.ImageTypeSpecifier type)

        SampleModel sm = type.getSampleModel();
        if (!(sm instanceof MultiPixelPackedSampleModel))
            return false;
        if (sm.getSampleSize(0) != 1)
            return false;

        return true;
    
public javax.imageio.ImageWritercreateWriterInstance(java.lang.Object extension)

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

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

        if (registered) {
            return;
        }

        registered = true;