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
IOException
public void writeByteArray(OutputStream outs, byte[] bytes) throws IOException
IOException
public Object deserializeFromBytes(byte[] bytes) throws IOException
IOException
public byte[] serializeToBytes(Object object) throws IOException
IOException
Copyright © 2017 Eclipse Foundation. All rights reserved.