public final class Serialization
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
fromBytes(byte[] data) |
static java.lang.Object |
fromBytes(byte[] data,
ClassResolver resolver) |
static java.lang.Object |
fromString(java.lang.String data) |
static java.lang.Object |
fromString(java.lang.String data,
java.nio.charset.Charset charset) |
static java.lang.Object |
fromString(java.lang.String data,
java.nio.charset.Charset charset,
ClassResolver resolver) |
static byte[] |
toBytes(java.lang.Object object) |
static java.lang.String |
toString(java.lang.Object object) |
public static java.lang.Object fromBytes(@Nullable byte[] data) throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException
public static java.lang.Object fromBytes(@Nullable byte[] data, ClassResolver resolver) throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException
public static java.lang.Object fromString(@Nullable java.lang.String data) throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException
public static java.lang.Object fromString(@Nullable java.lang.String data, java.nio.charset.Charset charset) throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException
public static java.lang.Object fromString(@Nullable java.lang.String data, java.nio.charset.Charset charset, ClassResolver resolver) throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException
public static byte[] toBytes(@Nullable java.lang.Object object) throws java.io.IOException
java.io.IOException
public static java.lang.String toString(@Nullable java.lang.Object object) throws java.io.IOException
java.io.IOException