public class MarshallUtil extends Object
| Constructor and Description |
|---|
MarshallUtil() |
| Modifier and Type | Method and Description |
|---|---|
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. |
public static Object objectFromByteBuffer(byte[] bytes) throws Exception
MarshalledValueInputStream.bytes - serialized form of an objectnull if bytes
is nullExceptionpublic static Object objectFromByteBuffer(InputStream bytes) throws Exception
MarshalledValueInputStream.bytes - serialized form of an objectnull if bytes
is nullExceptionCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.