public class ByteUtils extends Object
| Constructor and Description | 
|---|
| ByteUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static Object | bytesToObject(byte[] bytes)Convert a byte array into an object. | 
| static byte[] | objectToBytes(Object obj)Convert an object into byte array. | 
public static byte[] objectToBytes(Object obj) throws IOException
obj - an object that implements SerializableIOException - if an I/O error occurs while writing stream header.public static Object bytesToObject(byte[] bytes) throws IOException, ClassNotFoundException
bytes - a byte array representing the object.IOException - if an I/O error occurs while reading stream header.ClassNotFoundException - Class of a serialized object cannot be foundCopyright © GigaSpaces.