|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.jonas_ejb.lib.MarshallTool
Contains static methods to marshall/unmarshall objects to/from a byte[]
| Constructor Summary | |
MarshallTool()
|
|
| Method Summary | |
static java.io.Serializable |
fromBytes(byte[] bytes)
Converts byte array to an instance of java.io.Serializable |
static byte[] |
toBytes(java.io.Serializable o)
Converts an instance of java.io.Serializable to a serialized byte array |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MarshallTool()
| Method Detail |
public static byte[] toBytes(java.io.Serializable o)
throws java.io.IOException
o - Object to serialize
java.io.IOException - in error case
public static java.io.Serializable fromBytes(byte[] bytes)
throws java.io.IOException,
java.lang.ClassNotFoundException
bytes - A byte array containing the a serialized object
java.io.IOException - in error case
java.lang.ClassNotFoundException - in error case
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||