接口 Deserializer<T>

    • 方法详细资料

      • 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