|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jsefa.xml.lowlevel.StaxBasedXmlLowLevelDeserializer
public final class StaxBasedXmlLowLevelDeserializer
Stax based implementation of XmlLowLevelDeserializer
.
Constructor Summary | |
---|---|
StaxBasedXmlLowLevelDeserializer(XmlLowLevelConfiguration config)
Constructs a new StaxBasedXmlLowLevelDeserializer . |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StaxBasedXmlLowLevelDeserializer(XmlLowLevelConfiguration config)
StaxBasedXmlLowLevelDeserializer
.
config
- the configuration objectMethod Detail |
---|
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |