public class SerializeUtils extends Object
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static Object |
deserialize(byte[] bytes)
バイトをオブジェクトへ変換します。
|
static <T extends Serializable> |
deserialize(byte[] bytes,
Class<T> type)
バイトをオブジェクトへ変換します。
|
static byte[] |
serialize(Object obj)
オブジェクトをバイトへ変換します。
|
public static Object deserialize(byte[] bytes) throws IOException, ClassNotFoundException
bytes - デシリアライズしたいバイトIOException - 入出力エラーが発生した場合ClassNotFoundException - クラス定義が見つからない場合public static <T extends Serializable> T deserialize(byte[] bytes, Class<T> type) throws IOException, ClassNotFoundException
bytes - デシリアライズしたいバイトtype - デシリアライズ後のクラスの型IOException - 入出力エラーが発生した場合ClassNotFoundException - クラス定義が見つからない場合public static byte[] serialize(Object obj) throws IOException
obj - シリアライズしたいオブジェクトIOException - 入出力エラーが発生した場合Copyright © 2012 NTT DATA INTRAMART CORPORATION