com.jdon.util
类 ObjectStreamUtil

java.lang.Object
  继承者 com.jdon.util.ObjectStreamUtil

public class ObjectStreamUtil
extends Object


构造方法摘要
ObjectStreamUtil()
           
 
方法摘要
static Object bytesToObject(byte[] bytes)
          Converts a byte array to a serializable object.
static byte[] objectToBytes(Object object)
          Converts a serializable object to a byte array.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ObjectStreamUtil

public ObjectStreamUtil()
方法详细信息

objectToBytes

public static byte[] objectToBytes(Object object)
                            throws IOException
Converts a serializable object to a byte array.

抛出:
IOException

bytesToObject

public static Object bytesToObject(byte[] bytes)
                            throws IOException,
                                   ClassNotFoundException
Converts a byte array to a serializable object.

抛出:
IOException
ClassNotFoundException


Copyright © 2013. All Rights Reserved.