クラス SerializationUtils
java.lang.ObjectSE
org.springframework.amqp.utils.SerializationUtils
直列化を支援する静的ユーティリティ。
- 作成者:
- Dave Syer, Gary Russell, Artem Bilan
メソッドのサマリー
修飾子と型メソッド説明static voidcheckAllowedList(ClassSE<?> clazz, SetSE<StringSE> patterns) クラスが許可リストにあることを確認します。static @Nullable ObjectSEdeserialize(byte @Nullable[] bytes) バイトを逆直列化します。static @Nullable ObjectSEdeserialize(@Nullable ObjectInputStreamSE stream) ストリームを逆直列化します。static ObjectSEdeserialize(InputStreamSE inputStream, SetSE<StringSE> allowedListPatterns, ClassLoaderSE classLoader) ストリームを逆直列化します。static byte @Nullable[]提供されたオブジェクトを直列化します。
メソッドの詳細
serialize
提供されたオブジェクトを直列化します。- パラメーター:
object- 直列化するオブジェクト- 戻り値:
- 移植可能な方法でオブジェクトを表すバイトの配列
deserialize
バイトを逆直列化します。- パラメーター:
bytes- 作成された直列化されたオブジェクト- 戻り値:
- バイトを逆直列化した結果
deserialize
ストリームを逆直列化します。- パラメーター:
stream- 直列化されたオブジェクトから作成されたオブジェクトストリーム- 戻り値:
- バイトを逆直列化した結果
deserialize
public static ObjectSE deserialize(InputStreamSE inputStream, SetSE<StringSE> allowedListPatterns, ClassLoaderSE classLoader) throws IOExceptionSE ストリームを逆直列化します。- パラメーター:
inputStream- ストリーム。allowedListPatterns- 許可されたクラス。classLoader- クラスローダー。- 戻り値:
- 結果。
- 例外:
IOExceptionSE- IO 例外。- 導入:
- 2.1
checkAllowedList