public final class StAXSerializer extends Object implements XMLEventReader
Provides a StAX implementation (event API) for retrieving a Treetank database.
Constructor and Description |
---|
StAXSerializer(AbsAxis paramAxis,
INodeReadTrx pRtx)
Initialize XMLStreamReader implementation with transaction.
|
StAXSerializer(AbsAxis paramAxis,
INodeReadTrx pRtx,
boolean paramCloseRtx)
Initialize XMLStreamReader implementation with transaction.
|
public StAXSerializer(AbsAxis paramAxis, INodeReadTrx pRtx)
paramAxis
- AbsAxis
which is used to iterate over and generate
StAX events.public StAXSerializer(AbsAxis paramAxis, INodeReadTrx pRtx, boolean paramCloseRtx)
paramAxis
- AbsAxis
which is used to iterate over and generate
StAX events.paramCloseRtx
- Determines if rtx should be closed afterwards.public void close() throws XMLStreamException
close
in interface XMLEventReader
XMLStreamException
public String getElementText() throws XMLStreamException
getElementText
in interface XMLEventReader
XMLStreamException
public Object getProperty(String mName)
getProperty
in interface XMLEventReader
public boolean hasNext()
hasNext
in interface Iterator
hasNext
in interface XMLEventReader
public XMLEvent nextEvent() throws XMLStreamException
nextEvent
in interface XMLEventReader
XMLStreamException
public XMLEvent nextTag() throws XMLStreamException
nextTag
in interface XMLEventReader
XMLStreamException
public XMLEvent peek() throws XMLStreamException
peek
in interface XMLEventReader
XMLStreamException
public Object next()
Copyright © 2013. All Rights Reserved.