public class JpegDecoder
extends java.io.InputStream
| Modifier and Type | Field and Description |
|---|---|
static int |
GRAY8
8 Bits Gray scale
|
static int |
RGB24
32 Bits RGB
|
| Constructor and Description |
|---|
JpegDecoder(byte[] jpgBuffer)
Contructs a JPEG decoder
|
public static final int RGB24
public static final int GRAY8
public JpegDecoder(byte[] jpgBuffer)
jpgBuffer - buffer of encoded datapublic int GetType()
public byte[][] decode()
throws java.io.IOException
java.io.IOException - in case of failurepublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOException