public class JdkSerializer extends Object implements ISerializer
Modifier and Type | Field and Description |
---|---|
static ISerializer |
me |
Constructor and Description |
---|
JdkSerializer() |
Modifier and Type | Method and Description |
---|---|
Object |
fieldFromBytes(byte[] bytes) |
byte[] |
fieldToBytes(Object field) |
String |
keyFromBytes(byte[] bytes) |
byte[] |
keyToBytes(String key) |
Object |
valueFromBytes(byte[] bytes) |
byte[] |
valueToBytes(Object value) |
public static final ISerializer me
public byte[] keyToBytes(String key)
keyToBytes
in interface ISerializer
public String keyFromBytes(byte[] bytes)
keyFromBytes
in interface ISerializer
public byte[] fieldToBytes(Object field)
fieldToBytes
in interface ISerializer
public Object fieldFromBytes(byte[] bytes)
fieldFromBytes
in interface ISerializer
public byte[] valueToBytes(Object value)
valueToBytes
in interface ISerializer
public Object valueFromBytes(byte[] bytes)
valueFromBytes
in interface ISerializer
Copyright © 2018. All rights reserved.