|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectThincSMsgFlag
ThincSMsgFlagFBZData
public final class ThincSMsgFlagFBZData
class for compress flag message and unzipping the compressed image.
ThincSMsgFlag
,
ThincSMsgFBRawUpdate
Field Summary | |
---|---|
private static java.util.zip.Inflater |
decompressor
|
private ThincMsgHandler |
handler
|
private static java.nio.ByteBuffer |
hd
|
static int |
MESSAGE_SIZE
|
static int |
NONE
|
private int[] |
pixels
|
static int |
PNG
|
private static java.nio.IntBuffer |
resultInt
|
private static int |
state
|
private static byte[] |
unziped
|
private static int |
usize
|
private static byte[] |
ziped
|
static int |
ZLIB
|
private static int |
zsize
|
Constructor Summary | |
---|---|
ThincSMsgFlagFBZData(ThincMsgHandler h)
creates ThincSMsgFlagFBZData object. |
Method Summary | |
---|---|
static int |
get()
get() gets the current decompressing method |
java.nio.IntBuffer |
process()
process() receives the header for compression and try to unzip the compressed image. |
private java.nio.IntBuffer |
processPNG()
|
java.nio.IntBuffer |
processZLIB()
|
static boolean |
set(int flag)
set() set the decompressing method by using flags. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MESSAGE_SIZE
public static final int NONE
public static final int PNG
public static final int ZLIB
private static java.util.zip.Inflater decompressor
private static int state
private ThincMsgHandler handler
private static java.nio.ByteBuffer hd
private static int zsize
private static int usize
private static byte[] ziped
private static byte[] unziped
private static java.nio.IntBuffer resultInt
private int[] pixels
Constructor Detail |
---|
public ThincSMsgFlagFBZData(ThincMsgHandler h)
h
- ThincMsgHandler
to handle the messageMethod Detail |
---|
public static boolean set(int flag)
flag
- flag to use for decompression - NONE, PNG and ZLIB
public static int get()
public java.nio.IntBuffer process() throws ThincException
ThincException
private java.nio.IntBuffer processPNG() throws ThincException
ThincException
public java.nio.IntBuffer processZLIB() throws ThincException
ThincException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |