public final class SerializationUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
deserialize(byte[] inBytes) |
static <T> T |
deserialize(InputStream inputStream) |
static <T> T |
deserializeAndCheckObject(byte[] object,
Class<? extends Serializable> type) |
static byte[] |
serialize(Serializable object) |
static void |
serialize(Serializable object,
OutputStream outputStream) |
static byte[] |
serializeAndEncodeObject(Serializable obj) |
public static byte[] serialize(Serializable object) throws IOException
IOExceptionpublic static void serialize(Serializable object, OutputStream outputStream) throws IOException
IOExceptionpublic static <T> T deserialize(byte[] inBytes)
throws IOException,
ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic static <T> T deserialize(InputStream inputStream) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic static byte[] serializeAndEncodeObject(Serializable obj) throws IOException
IOExceptionpublic static <T> T deserializeAndCheckObject(byte[] object,
Class<? extends Serializable> type)
throws IOException,
ClassNotFoundException
IOExceptionClassNotFoundExceptionCopyright © 2020. All rights reserved.