org.ujmp.core.util
Class SerializationUtil

java.lang.Object
  extended by org.ujmp.core.util.SerializationUtil

public abstract class SerializationUtil
extends Object


Constructor Summary
SerializationUtil()
           
 
Method Summary
static Object deserialize(byte[] data)
           
static Object deserialize(InputStream inputStream)
           
static byte[] serialize(Serializable o)
           
static void serialize(Serializable obj, OutputStream outputStream)
           
static long sizeOf(Serializable o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializationUtil

public SerializationUtil()
Method Detail

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.