|
||||||||||
| 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 object| Method Detail |
|---|
public 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 LowLevelDeserializer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||