src/share/classes/com/sun/imageio/plugins/bmp/BMPMetadata.java

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


  74     public double greenY;
  75     public double greenZ;
  76     public double blueX;
  77     public double blueY;
  78     public double blueZ;
  79 
  80     // Fields for Gamma values for the LCS_CALIBRATED_RGB color space
  81     public int gammaRed;
  82     public int gammaGreen;
  83     public int gammaBlue;
  84 
  85     public int intent;
  86 
  87     // Fields for the Palette and Entries
  88     public byte[] palette = null;
  89     public int paletteSize;
  90     public int red;
  91     public int green;
  92     public int blue;
  93 
  94     // Fields from CommentExtension
  95     // List of byte[]
  96     public List comments = null; // new ArrayList();
  97 
  98     public BMPMetadata() {
  99         super(true,
 100               nativeMetadataFormatName,
 101               "com.sun.imageio.plugins.bmp.BMPMetadataFormat",
 102               null, null);
 103     }
 104 
 105     public boolean isReadOnly() {
 106         return true;
 107     }
 108 
 109     public Node getAsTree(String formatName) {
 110         if (formatName.equals(nativeMetadataFormatName)) {
 111             return getNativeTree();
 112         } else if (formatName.equals
 113                    (IIOMetadataFormatImpl.standardMetadataFormatName)) {
 114             return getStandardTree();
 115         } else {
 116             throw new IllegalArgumentException(I18N.getString("BMPMetadata0"));
 117         }




  74     public double greenY;
  75     public double greenZ;
  76     public double blueX;
  77     public double blueY;
  78     public double blueZ;
  79 
  80     // Fields for Gamma values for the LCS_CALIBRATED_RGB color space
  81     public int gammaRed;
  82     public int gammaGreen;
  83     public int gammaBlue;
  84 
  85     public int intent;
  86 
  87     // Fields for the Palette and Entries
  88     public byte[] palette = null;
  89     public int paletteSize;
  90     public int red;
  91     public int green;
  92     public int blue;
  93 




  94     public BMPMetadata() {
  95         super(true,
  96               nativeMetadataFormatName,
  97               "com.sun.imageio.plugins.bmp.BMPMetadataFormat",
  98               null, null);
  99     }
 100 
 101     public boolean isReadOnly() {
 102         return true;
 103     }
 104 
 105     public Node getAsTree(String formatName) {
 106         if (formatName.equals(nativeMetadataFormatName)) {
 107             return getNativeTree();
 108         } else if (formatName.equals
 109                    (IIOMetadataFormatImpl.standardMetadataFormatName)) {
 110             return getStandardTree();
 111         } else {
 112             throw new IllegalArgumentException(I18N.getString("BMPMetadata0"));
 113         }