public final class Serialization extends Object
Modifier and Type | Method and Description |
---|---|
static Serialization |
getInstance() |
static com.esotericsoftware.kryo.Kryo |
getKryo() |
static Serialization |
newInstance() |
Object |
read(byte[] buf) |
Object |
read(byte[] buf,
int offset) |
Object |
read(InputStream is) |
byte[] |
write(Object object) |
void |
write(OutputStream os,
Object object) |
public static Serialization getInstance()
public static Serialization newInstance()
public static com.esotericsoftware.kryo.Kryo getKryo()
public Object read(byte[] buf)
public Object read(byte[] buf, int offset)
public byte[] write(Object object)
public Object read(InputStream is) throws IOException
IOException
public void write(OutputStream os, Object object) throws IOException
IOException