|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcern.cmw.DataCodec
public class DataCodec
This utility class allows to convert Data objects to byte arrays and reconstruct them from the binary representation. This is similar to the Java object serialization (which can also be applied to the Java Data objects), but the DataCodec uses a language independent format (Common Data Representation, or CDR) to serialize objects. The CDR encoded Data objects can be stored in a file or a database, and can be passed between C++ and Java applications.
Method Summary | |
---|---|
static Data |
decode(byte[] bar)
Constructs a Data object from its binary representation in bar. |
static byte[] |
encode(Data data)
Returns a binary representation of the specified Data object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static byte[] encode(Data data)
public static Data decode(byte[] bar)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |