Package org.apache.cxf.staxutils
Class PartialXMLStreamReader
- java.lang.Object
- 
- org.apache.cxf.staxutils.DepthXMLStreamReader
- 
- org.apache.cxf.staxutils.PartialXMLStreamReader
 
 
- 
- All Implemented Interfaces:
- XMLStreamConstants,- XMLStreamReader
 
 public class PartialXMLStreamReader extends DepthXMLStreamReader Read from a StaX reader, stopping when the next element is a specified element. For example, this can be used to read all of the Header of a soap message into a DOM document stopping on contact with the body element.
- 
- 
Field Summary- 
Fields inherited from class org.apache.cxf.staxutils.DepthXMLStreamReaderreader
 - 
Fields inherited from interface javax.xml.stream.XMLStreamConstantsATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
 
- 
 - 
Constructor SummaryConstructors Constructor Description PartialXMLStreamReader(XMLStreamReader r, QName endTag)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEventType()booleanhasNext()intnext()- 
Methods inherited from class org.apache.cxf.staxutils.DepthXMLStreamReaderclose, equals, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getDepth, getElementText, getEncoding, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getProperty, getReader, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hashCode, hasName, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, nextTag, require, standaloneSet, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
PartialXMLStreamReaderpublic PartialXMLStreamReader(XMLStreamReader r, QName endTag) 
 
- 
 - 
Method Detail- 
nextpublic int next() throws XMLStreamException- Specified by:
- nextin interface- XMLStreamReader
- Overrides:
- nextin class- DepthXMLStreamReader
- Throws:
- XMLStreamException
 
 - 
getEventTypepublic int getEventType() - Specified by:
- getEventTypein interface- XMLStreamReader
- Overrides:
- getEventTypein class- DepthXMLStreamReader
 
 - 
hasNextpublic boolean hasNext() - Specified by:
- hasNextin interface- XMLStreamReader
- Overrides:
- hasNextin class- DepthXMLStreamReader
 
 
- 
 
-