|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.net.util.SerializationHelper
public final class SerializationHelper
Helper class for serializing and deserializing objects efficiently
Delegate
Method Summary | |
---|---|
static java.lang.Object |
read(java.lang.Class type,
java.io.ObjectInput in)
Read an object of the specified type from a stream |
static void |
write(java.lang.Class type,
java.lang.Object object,
java.io.ObjectOutput out)
Write an object of the specified type to a stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void write(java.lang.Class type, java.lang.Object object, java.io.ObjectOutput out) throws java.io.IOException
type
- the type of the objectobject
- the object to writeout
- the stream to write to
java.io.IOException
- if the object can't be writtenpublic static java.lang.Object read(java.lang.Class type, java.io.ObjectInput in) throws java.lang.ClassNotFoundException, java.io.IOException
type
- the type of the objectin
- the stream to read from
java.lang.ClassNotFoundException
- if the class for a serialized object
cannot be found
java.io.IOException
- if the object can't be read
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |