|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmadkit.netcomm.Codec
public class Codec
Utility class. Provides a simple way to encode and decode Objects.
Constructor Summary | |
---|---|
Codec()
|
Method Summary | |
---|---|
static java.lang.Object |
decode(byte[] raw)
Decodes an object |
static byte[] |
encode(java.lang.Object o)
Encodes an object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Codec()
Method Detail |
---|
public static final java.lang.Object decode(byte[] raw) throws java.io.IOException, java.lang.ClassNotFoundException
raw
- raw byte format of the object
java.io.IOException
java.lang.ClassNotFoundException
public static final byte[] encode(java.lang.Object o) throws java.io.IOException
o
- Obejct to encode
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |