public class SerializingUtil extends Object
| コンストラクタと説明 |
|---|
SerializingUtil() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static Serializable |
deserialize(byte[] bytes) |
static Serializable |
deserialize(byte[] bytes,
ClassLoader loader) |
static Serializable |
deserialize(byte[] bytes,
int offset,
int length) |
static Serializable |
deserialize(byte[] bytes,
int offset,
int length,
ClassLoader loader) |
static Serializable |
deserialize(ByteBuffer bytes) |
static Serializable |
deserialize(ByteBuffer bytes,
ClassLoader loader)
ByteBufferからオブジェクトをdeserializeする。
|
static byte[] |
serialize(Object obj) |
public static byte[] serialize(Object obj) throws ObjectStreamException
public static Serializable deserialize(ByteBuffer bytes) throws ClassNotFoundException, ObjectStreamException
public static Serializable deserialize(ByteBuffer bytes, ClassLoader loader) throws ClassNotFoundException, ObjectStreamException
bytes - ByteBufferloader - loaderClassNotFoundException - クラスが存在しない場合ObjectStreamException - ObjectStreamに不整合を検知した場合public static Serializable deserialize(byte[] bytes) throws ClassNotFoundException, ObjectStreamException
public static Serializable deserialize(byte[] bytes, ClassLoader loader) throws ClassNotFoundException, ObjectStreamException
public static Serializable deserialize(byte[] bytes, int offset, int length) throws ClassNotFoundException, ObjectStreamException
public static Serializable deserialize(byte[] bytes, int offset, int length, ClassLoader loader) throws ClassNotFoundException, ObjectStreamException
Copyright © 2017. All rights reserved.