T - public interface Deserializer<T>
Provides a facility for deserializing objects of type InputStream.
Deserializers are stateful, but must not buffer the input since other producers may read from the input between calls
to deserialize(Object).
void open(DataInput in) throws IOException
Prepare the deserializer for reading.
IOExceptionT deserialize(T t) throws IOException
Deserialize the next object from the underlying input stream. If the object t is non-null then this
deserializer may set its internal state to the next object read from the input stream. Otherwise, if the
object t is null a new deserialized object will be created.
IOExceptionvoid close()
throws IOException
Clear up any resources.
IOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.