public interface Deserializer
| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean closeReader)
Closes the deserialization stream.
|
InputPosition |
getInputPosition()
Returns information about the current position within the input stream.
|
boolean |
hasNext()
Returns true if another object can be deserialized from the stream.
|
<T> T |
next()
Deserializes an object from the stream.
|
void |
open(Reader reader)
Opens a new deserialization stream based on the given reader.
|
void open(Reader reader)
reader - the reader to base the stream on.DeserializationExceptionboolean hasNext()
DeserializationException<T> T next()
T - the expected type of the objectDeserializationExceptionvoid close(boolean closeReader)
closeReader
is true.closeReader - if true, the underlying reader will be closed, too.DeserializationExceptionInputPosition getInputPosition()
Copyright © 2014. All rights reserved.