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 LowLevelDeserializerreader - the reader to base the stream on.public void open(Reader reader, String systemId)
open in interface XmlLowLevelDeserializerreader - 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 XmlLowLevelDeserializerpublic void moveToNext()
moveToNext in interface XmlLowLevelDeserializerpublic XmlItemType currentType()
XmlItemType for the different values allowed.currentType in interface XmlLowLevelDeserializerpublic XmlItem current()
current in interface XmlLowLevelDeserializerpublic int currentDepth()
The depth of the root element is 0.
currentDepth in interface XmlLowLevelDeserializerpublic void close(boolean closeReader)
closeReader
is true.close in interface LowLevelDeserializercloseReader - if true, the underlying reader will be closed, too.public InputPosition getInputPosition()
getInputPosition in interface LowLevelDeserializerCopyright © 2014. All rights reserved.