2003/06/16 08:03:16
[org.ibex.core.git] / src / org / xwt / plat / GCJ.java
index 38d9ec9..2db7961 100644 (file)
@@ -26,27 +26,27 @@ public abstract class GCJ extends Platform {
         
     // FIXME
     protected ImageDecoder _decodeJPEG(InputStream is, String name) {
-       try {
-           return new JPEG(is);
-       } catch (Exception e) {
-           Log.log(this, "Exception while decoding JPEG image " + name);
-           Log.log(this, e);
-           return null;
-       }
+        try {
+            return new JPEG(is);
+        } catch (Exception e) {
+            Log.log(this, "Exception while decoding JPEG image " + name);
+            Log.log(this, e);
+            return null;
+        }
     }
 
     /** Converts an InputStream carrying a JPEG image into an ARGB int[] */
     private static class JPEG implements ImageDecoder {
-       int[] data;
-       byte[] buffer;
-       int width, height;
-       InputStream is;
-       
-       public final int[] getData() { return data; }
-       public final int getWidth() { return width; }
-       public final int getHeight() { return height; }
-       private JPEG(InputStream is) { this.is = is; nativeDecompress(); buffer = null; }
-       private native void nativeDecompress();
+        int[] data;
+        byte[] buffer;
+        int width, height;
+        InputStream is;
+        
+        public final int[] getData() { return data; }
+        public final int getWidth() { return width; }
+        public final int getHeight() { return height; }
+        private JPEG(InputStream is) { this.is = is; nativeDecompress(); buffer = null; }
+        private native void nativeDecompress();
     }
 
 }