Constructor and Description |
---|
ObjectData(byte[] raw) |
ObjectData(java.lang.Object data) |
Modifier and Type | Method and Description |
---|---|
static <T> T |
bytesToObject(byte[] bytes,
T o) |
byte[] |
getData() |
<T> T |
getData(T o) |
static byte[] |
objectToBytes(java.lang.Object o) |
public ObjectData(byte[] raw)
public ObjectData(java.lang.Object data) throws NoSuitableDataException
NoSuitableDataException
public <T> T getData(T o) throws NoSuitableDataException
NoSuitableDataException
public static final byte[] objectToBytes(java.lang.Object o)
public static final <T> T bytesToObject(byte[] bytes, T o)