public final class StaxBasedXmlLowLevelDeserializer extends Object implements XmlLowLevelDeserializer
XmlLowLevelDeserializer
.Constructor and Description |
---|
StaxBasedXmlLowLevelDeserializer(XmlLowLevelConfiguration config)
Constructs a new
StaxBasedXmlLowLevelDeserializer . |
Modifier and Type | Method and Description |
---|---|
void |
close(boolean closeReader)
Closes the deserialization stream.
|
XmlItem |
current()
Returns the current xml item.
|
int |
currentDepth()
Returns the current element depth.
|
XmlItemType |
currentType()
Returns the type of the current xml item.
|
InputPosition |
getInputPosition()
Returns information about the current position within the input stream.
|
boolean |
hasNext()
Returns true if another xml item can be deserialized from the stream.
|
void |
moveToNext()
Moves to the next xml item which can be deserialized.
|
void |
open(Reader reader)
Opens a new deserialization stream based on the given reader.
|
void |
open(Reader reader,
String systemId)
Opens a new deserialization stream based on the given reader and system id.
|
public StaxBasedXmlLowLevelDeserializer(XmlLowLevelConfiguration config)
StaxBasedXmlLowLevelDeserializer
.config
- the configuration objectpublic void open(Reader reader)
open
in interface LowLevelDeserializer
reader
- the reader to base the stream on.public void open(Reader reader, String systemId)
open
in interface XmlLowLevelDeserializer
reader
- the reader to base the stream on.systemId
- the system ID of the stream as an URI string. Will be used to resolve relative URIs.public boolean hasNext()
hasNext
in interface XmlLowLevelDeserializer
public void moveToNext()
moveToNext
in interface XmlLowLevelDeserializer
public XmlItemType currentType()
XmlItemType
for the different values allowed.currentType
in interface XmlLowLevelDeserializer
public XmlItem current()
current
in interface XmlLowLevelDeserializer
public int currentDepth()
The depth of the root element is 0.
currentDepth
in interface XmlLowLevelDeserializer
public void close(boolean closeReader)
closeReader
is true.close
in interface LowLevelDeserializer
closeReader
- if true, the underlying reader will be closed, too.public InputPosition getInputPosition()
getInputPosition
in interface LowLevelDeserializer
Copyright © 2014. All rights reserved.