src/share/classes/com/sun/imageio/plugins/wbmp/WBMPImageReaderSpi.java

Print this page
rev 9343 : 8033716: Fix raw and unchecked lint warnings in com.sun.imageio
Reviewed-by: darcy, prr, bae


  38 public class WBMPImageReaderSpi extends ImageReaderSpi {
  39 
  40     private static final int MAX_WBMP_WIDTH = 1024;
  41     private static final int MAX_WBMP_HEIGHT = 768;
  42 
  43     private static String [] writerSpiNames =
  44         {"com.sun.imageio.plugins.wbmp.WBMPImageWriterSpi"};
  45     private static String[] formatNames = {"wbmp", "WBMP"};
  46     private static String[] entensions = {"wbmp"};
  47     private static String[] mimeType = {"image/vnd.wap.wbmp"};
  48 
  49     private boolean registered = false;
  50 
  51     public WBMPImageReaderSpi() {
  52         super("Oracle Corporation",
  53               "1.0",
  54               formatNames,
  55               entensions,
  56               mimeType,
  57               "com.sun.imageio.plugins.wbmp.WBMPImageReader",
  58               new Class[] { ImageInputStream.class },
  59               writerSpiNames,
  60               true,
  61               null, null, null, null,
  62               true,
  63               WBMPMetadata.nativeMetadataFormatName,
  64               "com.sun.imageio.plugins.wbmp.WBMPMetadataFormat",
  65               null, null);
  66     }
  67 
  68     public void onRegistration(ServiceRegistry registry,
  69                                Class<?> category) {
  70         if (registered) {
  71             return;
  72         }
  73         registered = true;
  74     }
  75 
  76     public String getDescription(Locale locale) {
  77         return "Standard WBMP Image Reader";
  78     }




  38 public class WBMPImageReaderSpi extends ImageReaderSpi {
  39 
  40     private static final int MAX_WBMP_WIDTH = 1024;
  41     private static final int MAX_WBMP_HEIGHT = 768;
  42 
  43     private static String [] writerSpiNames =
  44         {"com.sun.imageio.plugins.wbmp.WBMPImageWriterSpi"};
  45     private static String[] formatNames = {"wbmp", "WBMP"};
  46     private static String[] entensions = {"wbmp"};
  47     private static String[] mimeType = {"image/vnd.wap.wbmp"};
  48 
  49     private boolean registered = false;
  50 
  51     public WBMPImageReaderSpi() {
  52         super("Oracle Corporation",
  53               "1.0",
  54               formatNames,
  55               entensions,
  56               mimeType,
  57               "com.sun.imageio.plugins.wbmp.WBMPImageReader",
  58               new Class<?>[] { ImageInputStream.class },
  59               writerSpiNames,
  60               true,
  61               null, null, null, null,
  62               true,
  63               WBMPMetadata.nativeMetadataFormatName,
  64               "com.sun.imageio.plugins.wbmp.WBMPMetadataFormat",
  65               null, null);
  66     }
  67 
  68     public void onRegistration(ServiceRegistry registry,
  69                                Class<?> category) {
  70         if (registered) {
  71             return;
  72         }
  73         registered = true;
  74     }
  75 
  76     public String getDescription(Locale locale) {
  77         return "Standard WBMP Image Reader";
  78     }