Package org.ujmp.core.util
Class SerializationUtil
java.lang.Object
org.ujmp.core.util.SerializationUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Object
deserialize
(byte[] data) static Object
deserialize
(InputStream inputStream) static Object
static Object
static Object
loadCompressed
(File file) static Object
loadCompressed
(String filename) static void
static void
static void
saveCompressed
(File file, Object o) static void
saveCompressed
(String filename, Object o) static byte[]
static void
serialize
(Object obj, OutputStream outputStream) static long
-
Constructor Details
-
SerializationUtil
public SerializationUtil()
-
-
Method Details
-
serialize
- Throws:
IOException
-
deserialize
public static Object deserialize(InputStream inputStream) throws ClassNotFoundException, IOException - Throws:
ClassNotFoundException
IOException
-
serialize
- Throws:
IOException
-
deserialize
- Throws:
ClassNotFoundException
IOException
-
sizeOf
- Throws:
IOException
-
load
- Throws:
ClassNotFoundException
IOException
-
load
- Throws:
ClassNotFoundException
IOException
-
loadCompressed
- Throws:
ClassNotFoundException
IOException
-
loadCompressed
- Throws:
ClassNotFoundException
IOException
-
save
- Throws:
IOException
-
save
- Throws:
IOException
-
saveCompressed
- Throws:
IOException
-
saveCompressed
- Throws:
IOException
-