|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.marshall.MarshallUtil
public class MarshallUtil
Utility methods related to marshalling and unmarshalling objects.
Constructor Summary | |
---|---|
MarshallUtil()
|
Method Summary | |
---|---|
static Object |
objectFromByteBuffer(byte[] bytes)
Creates an object from a byte buffer using MarshalledValueInputStream . |
static Object |
objectFromByteBuffer(InputStream bytes)
Creates an object from a byte buffer using MarshalledValueInputStream . |
static byte[] |
objectToByteBuffer(Object obj)
Serializes an object into a byte buffer using MarshalledValueOutputStream . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MarshallUtil()
Method Detail |
---|
public static Object objectFromByteBuffer(byte[] bytes) throws Exception
MarshalledValueInputStream
.
bytes
- serialized form of an object
null
if bytes
is null
Exception
public static Object objectFromByteBuffer(InputStream bytes) throws Exception
MarshalledValueInputStream
.
bytes
- serialized form of an object
null
if bytes
is null
Exception
public static byte[] objectToByteBuffer(Object obj) throws Exception
MarshalledValueOutputStream
.
obj
- an object that implements Serializable or Externalizable
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |