src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriterSpi.java

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


  33 import javax.imageio.ImageTypeSpecifier;
  34 import javax.imageio.IIOException;
  35 
  36 import java.awt.image.ColorModel;
  37 import java.awt.image.IndexColorModel;
  38 import java.awt.image.SampleModel;
  39 import java.util.Locale;
  40 
  41 public class JPEGImageWriterSpi extends ImageWriterSpi {
  42 
  43     private static String [] readerSpiNames =
  44         {"com.sun.imageio.plugins.jpeg.JPEGImageReaderSpi"};
  45 
  46     public JPEGImageWriterSpi() {
  47         super(JPEG.vendor,
  48               JPEG.version,
  49               JPEG.names,
  50               JPEG.suffixes,
  51               JPEG.MIMETypes,
  52               "com.sun.imageio.plugins.jpeg.JPEGImageWriter",
  53               new Class[] { ImageOutputStream.class },
  54               readerSpiNames,
  55               true,
  56               JPEG.nativeStreamMetadataFormatName,
  57               JPEG.nativeStreamMetadataFormatClassName,
  58               null, null,
  59               true,
  60               JPEG.nativeImageMetadataFormatName,
  61               JPEG.nativeImageMetadataFormatClassName,
  62               null, null
  63               );
  64     }
  65 
  66     public String getDescription(Locale locale) {
  67         return "Standard JPEG Image Writer";
  68     }
  69 
  70     public boolean isFormatLossless() {
  71         return false;
  72     }
  73 




  33 import javax.imageio.ImageTypeSpecifier;
  34 import javax.imageio.IIOException;
  35 
  36 import java.awt.image.ColorModel;
  37 import java.awt.image.IndexColorModel;
  38 import java.awt.image.SampleModel;
  39 import java.util.Locale;
  40 
  41 public class JPEGImageWriterSpi extends ImageWriterSpi {
  42 
  43     private static String [] readerSpiNames =
  44         {"com.sun.imageio.plugins.jpeg.JPEGImageReaderSpi"};
  45 
  46     public JPEGImageWriterSpi() {
  47         super(JPEG.vendor,
  48               JPEG.version,
  49               JPEG.names,
  50               JPEG.suffixes,
  51               JPEG.MIMETypes,
  52               "com.sun.imageio.plugins.jpeg.JPEGImageWriter",
  53               new Class<?>[] { ImageOutputStream.class },
  54               readerSpiNames,
  55               true,
  56               JPEG.nativeStreamMetadataFormatName,
  57               JPEG.nativeStreamMetadataFormatClassName,
  58               null, null,
  59               true,
  60               JPEG.nativeImageMetadataFormatName,
  61               JPEG.nativeImageMetadataFormatClassName,
  62               null, null
  63               );
  64     }
  65 
  66     public String getDescription(Locale locale) {
  67         return "Standard JPEG Image Writer";
  68     }
  69 
  70     public boolean isFormatLossless() {
  71         return false;
  72     }
  73