org.ujmp.core.util
Class SerializationUtil
java.lang.Object
org.ujmp.core.util.SerializationUtil
public abstract class SerializationUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SerializationUtil
public SerializationUtil()
serialize
public static void serialize(Serializable obj,
OutputStream outputStream)
throws IOException
- Throws:
IOException
deserialize
public static Object deserialize(InputStream inputStream)
throws ClassNotFoundException,
IOException
- Throws:
ClassNotFoundException
IOException
serialize
public static byte[] serialize(Serializable o)
throws IOException
- Throws:
IOException
deserialize
public static Object deserialize(byte[] data)
throws ClassNotFoundException,
IOException
- Throws:
ClassNotFoundException
IOException
sizeOf
public static long sizeOf(Serializable o)
throws IOException
- Throws:
IOException
Copyright © 2010. All Rights Reserved.