com.bea.xml.stream
Class SubReader
java.lang.Object
com.bea.xml.stream.ReaderDelegate
com.bea.xml.stream.SubReader
- All Implemented Interfaces:
- XMLStreamConstants, XMLStreamReader
- public class SubReader
- extends ReaderDelegate
Creates a SubReader over a node of a document
| 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 |
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubReader
public SubReader(XMLStreamReader reader)
throws XMLStreamException
next
public int next()
throws XMLStreamException
- Specified by:
next in interface XMLStreamReader- Overrides:
next in class ReaderDelegate
- Throws:
XMLStreamException
nextElement
public int nextElement()
throws XMLStreamException
- Throws:
XMLStreamException
hasNext
public boolean hasNext()
throws XMLStreamException
- Specified by:
hasNext in interface XMLStreamReader- Overrides:
hasNext in class ReaderDelegate
- Throws:
XMLStreamException
moveToStartElement
public boolean moveToStartElement()
throws XMLStreamException
- Throws:
XMLStreamException
moveToStartElement
public boolean moveToStartElement(String localName)
throws XMLStreamException
- Throws:
XMLStreamException
moveToStartElement
public boolean moveToStartElement(String localName,
String namespaceUri)
throws XMLStreamException
- Throws:
XMLStreamException
moveToEndElement
public boolean moveToEndElement()
throws XMLStreamException
- Throws:
XMLStreamException
moveToEndElement
public boolean moveToEndElement(String localName)
throws XMLStreamException
- Throws:
XMLStreamException
moveToEndElement
public boolean moveToEndElement(String localName,
String namespaceUri)
throws XMLStreamException
- Throws:
XMLStreamException
print
public static void print(XMLStreamReader r,
int depth)
throws XMLStreamException
- Throws:
XMLStreamException
sub
public static void sub(XMLStreamReader r,
int depth)
throws Exception
- Throws:
Exception
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2004 . All Rights Reserved.