Package com.bea.xml.stream
Class SubReader
java.lang.Object
com.bea.xml.stream.ReaderDelegate
com.bea.xml.stream.SubReader
- All Implemented Interfaces:
XMLStreamConstants
,XMLStreamReader
Creates a SubReader over a node of a document
-
Field Summary
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasNext()
static void
boolean
boolean
moveToEndElement
(String localName) boolean
moveToEndElement
(String localName, String namespaceUri) boolean
boolean
moveToStartElement
(String localName) boolean
moveToStartElement
(String localName, String namespaceUri) int
next()
int
static void
print
(XMLStreamReader r, int depth) static void
sub
(XMLStreamReader r, int depth) Methods inherited from class com.bea.xml.stream.ReaderDelegate
close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getDelegate, getElementText, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, nextTag, require, setDelegate, standaloneSet
-
Constructor Details
-
SubReader
- Throws:
XMLStreamException
-
-
Method Details
-
next
- Specified by:
next
in interfaceXMLStreamReader
- Overrides:
next
in classReaderDelegate
- Throws:
XMLStreamException
-
nextElement
- Throws:
XMLStreamException
-
hasNext
- Specified by:
hasNext
in interfaceXMLStreamReader
- Overrides:
hasNext
in classReaderDelegate
- Throws:
XMLStreamException
-
moveToStartElement
- Throws:
XMLStreamException
-
moveToStartElement
- Throws:
XMLStreamException
-
moveToStartElement
- Throws:
XMLStreamException
-
moveToEndElement
- Throws:
XMLStreamException
-
moveToEndElement
- Throws:
XMLStreamException
-
moveToEndElement
- Throws:
XMLStreamException
-
print
- Throws:
XMLStreamException
-
sub
- Throws:
Exception
-
main
- Throws:
Exception
-