接口 Deserializer<T>
- 所有已知实现类:
DefaultDeserializer
,SerializationDelegate
public interface Deserializer<T>
A strategy interface for converting from data in an InputStream to an Object.- 从以下版本开始:
- 3.0.5
- 作者:
- Gary Russell, Mark Fisher
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 T
deserialize(InputStream inputStream)
Read (assemble) an object of type T from the given InputStream.
方法详细资料
deserialize
T deserialize(InputStream inputStream) throws IOException
Read (assemble) an object of type T from the given InputStream.Note: Implementations should not close the given InputStream (or any decorators of that InputStream) but rather leave this up to the caller.
- 参数:
inputStream
- the input stream- 返回:
- the deserialized object
- 抛出:
IOException
- in case of errors reading from the stream