public class ObjectSerializationUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BAOS_BUFFER_SIZE |
| Constructor and Description |
|---|
ObjectSerializationUtil() |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserializeFromBytes(byte[] bytes) |
byte[] |
readToByteArray(InputStream input) |
byte[] |
serializeToBytes(Object object) |
void |
writeByteArray(OutputStream outs,
byte[] bytes) |
public static final int DEFAULT_BAOS_BUFFER_SIZE
public byte[] readToByteArray(InputStream input) throws IOException
IOExceptionpublic void writeByteArray(OutputStream outs, byte[] bytes) throws IOException
IOExceptionpublic Object deserializeFromBytes(byte[] bytes) throws IOException
IOExceptionpublic byte[] serializeToBytes(Object object) throws IOException
IOExceptionCopyright © 2004–2020 Eclipse Foundation. All rights reserved.