public interface XMLInputStream
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this input stream and releases any system resources associated with the stream.
|
ReferenceResolver |
getReferenceResolver()
Returns the reference resolver that was set for this stream,
returns null if no ReferenceResolver has been set.
|
XMLInputStream |
getSubStream()
getSubStream() returns a stream which points to the entire next element in the
current stream.
|
boolean |
hasNext()
Check if there are more events to pull of the stream
|
XMLEvent |
next()
Get the next XMLEvent on the stream
|
XMLEvent |
peek()
Check the next XMLEvent without reading it from the stream.
|
void |
setReferenceResolver(ReferenceResolver resolver)
Provides a way to set the ReferenceResolver of the stream,
this is mostly needed for handle references to other parts of the
document.
|
void |
skip()
Skip the next stream event
|
boolean |
skip(int eventType)
Position the stream at the next XMLEvent of this type.
|
boolean |
skip(XMLName name)
Position the stream at the next element of this name.
|
boolean |
skip(XMLName name,
int eventType)
Position the stream at the next element of this name and this type.
|
void |
skipElement()
Skips the entire next start tag / end tag pair.
|
XMLEvent next() throws XMLStreamException
XMLStreamExceptionXMLEventboolean hasNext()
throws XMLStreamException
XMLStreamExceptionXMLEventvoid skip() throws XMLStreamException
XMLStreamExceptionvoid skipElement()
throws XMLStreamException
XMLStreamExceptionXMLEvent peek() throws XMLStreamException
XMLStreamExceptionXMLEventboolean skip(int eventType)
throws XMLStreamException
eventType - An integer code that indicates the element type.XMLStreamExceptionXMLEventboolean skip(XMLName name) throws XMLStreamException
name - An object that defines an XML name.
If the XMLName.getNameSpaceName() method on the XMLName argument returns
null the XMLName will match just the local name. Prefixes are
not checked for equality.XMLStreamExceptionXMLNameboolean skip(XMLName name, int eventType) throws XMLStreamException
name - An object that defines an XML name.
If the XMLName.getNameSpaceName() method on the XMLName argument returns
null the XMLName will match just the local name. Prefixes are
not checked for equality.eventType - An integer code that indicates the element type.XMLStreamExceptionXMLEvent,
XMLNameXMLInputStream getSubStream() throws XMLStreamException
XMLStreamExceptionvoid close()
throws XMLStreamException
XMLStreamExceptionReferenceResolver getReferenceResolver()
ReferenceResolvervoid setReferenceResolver(ReferenceResolver resolver)
ReferenceResolver