public class Serializables extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends Serializable> |
deserialize(byte[] bytes) |
static <T extends Serializable> |
deserialize(byte[] bytes,
boolean compressed) |
static <T extends Serializable> |
fromBase64(byte[] bytes) |
static byte[] |
serialize(Serializable serializable) |
static byte[] |
serialize(Serializable serializable,
boolean compress) |
static byte[] |
toBase64(Serializable serializable) |
public static byte[] serialize(Serializable serializable) throws IOException
IOExceptionpublic static byte[] serialize(Serializable serializable, boolean compress) throws IOException
IOExceptionpublic static <T extends Serializable> T deserialize(byte[] bytes) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic static <T extends Serializable> T deserialize(byte[] bytes, boolean compressed) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic static byte[] toBase64(Serializable serializable) throws IOException
IOExceptionpublic static <T extends Serializable> T fromBase64(byte[] bytes) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionCopyright © 2017 Calrissian. All rights reserved.