com.bea.xml.stream
Class SubReader

java.lang.Object
  extended bycom.bea.xml.stream.ReaderDelegate
      extended bycom.bea.xml.stream.SubReader
All Implemented Interfaces:
XMLStreamConstants, XMLStreamReader

public class SubReader
extends ReaderDelegate

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
SubReader(XMLStreamReader reader)
           
 
Method Summary
 boolean hasNext()
           
static void main(String[] args)
           
 boolean moveToEndElement()
           
 boolean moveToEndElement(String localName)
           
 boolean moveToEndElement(String localName, String namespaceUri)
           
 boolean moveToStartElement()
           
 boolean moveToStartElement(String localName)
           
 boolean moveToStartElement(String localName, String namespaceUri)
           
 int next()
           
 int nextElement()
           
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubReader

public SubReader(XMLStreamReader reader)
          throws XMLStreamException
Method Detail

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.