public final class XmlDeserializerImpl extends Object implements XmlDeserializer
XmlDeserializer
.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,
String baseURI)
Opens a new deserialization stream based on the given reader and system id.
|
public void open(Reader reader)
open
in interface Deserializer
reader
- the reader to base the stream on.public void open(Reader reader, String baseURI)
open
in interface XmlDeserializer
reader
- the reader to base the stream on.baseURI
- the system ID of the stream as an URI string. Will be used to resolve relative URIs.public boolean hasNext()
hasNext
in interface Deserializer
public <T> T next()
next
in interface Deserializer
T
- the expected type of the objectpublic void close(boolean closeReader)
closeReader
is true.close
in interface Deserializer
closeReader
- if true, the underlying reader will be closed, too.public InputPosition getInputPosition()
getInputPosition
in interface Deserializer
Copyright © 2014. All rights reserved.