- 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();
+ private static class JPEG extends 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();