|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.cjdbc.common.stream.CJDBCStream
This is a useful stream class to compress and decompress object to a stream.
| Field Summary | |
static int |
CLEAN_INTERVAL
Clean the stream after CLEAN_INTERVAL call to writeUnshared |
| Constructor Summary | |
CJDBCStream()
|
|
| Method Summary | |
static byte[] |
compressObject(java.lang.Object obj)
Compress an object from its java form to byte array |
static int |
countBytes(java.lang.Object obj)
Statistic method to count the number of bytes of a class. |
static java.lang.Object |
decompressObject(byte[] array)
Decompress an object from its byte-compressed form to java object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int CLEAN_INTERVAL
| Constructor Detail |
public CJDBCStream()
| Method Detail |
public static final java.lang.Object decompressObject(byte[] array)
throws java.io.IOException,
java.lang.ClassNotFoundException
array - of bytes
java.io.IOException - if fails to read
java.lang.ClassNotFoundException - if class of object does not exist
public static final byte[] compressObject(java.lang.Object obj)
throws java.io.IOException
obj - to compress
java.io.IOException - if fails to read
public static final int countBytes(java.lang.Object obj)
throws java.io.IOException
obj - to count bytes
java.io.IOException - if fails to read
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||