Apache CXF API

org.apache.cxf.staxutils
Class FragmentStreamReader

java.lang.Object
  extended by org.apache.cxf.staxutils.DepthXMLStreamReader
      extended by org.apache.cxf.staxutils.FragmentStreamReader
All Implemented Interfaces:
javax.xml.stream.XMLStreamConstants, javax.xml.stream.XMLStreamReader

public class FragmentStreamReader
extends DepthXMLStreamReader

Wraps a XMLStreamReader and provides optional START_DOCUMENT and END_DOCUMENT events.

Author:
Dan Diephouse

Field Summary
 
Fields inherited from class org.apache.cxf.staxutils.DepthXMLStreamReader
reader
 
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
FragmentStreamReader(javax.xml.stream.XMLStreamReader reader)
           
FragmentStreamReader(javax.xml.stream.XMLStreamReader reader, boolean doDocEvents)
           
 
Method Summary
 int getEventType()
           
 boolean hasNext()
           
 boolean isAdvanceAtEnd()
           
 int next()
           
 void setAdvanceAtEnd(boolean a)
          Set whether or not the FragmentStreamReader should move past the END_ELEMENT when it is done parsing.
 
Methods inherited from class org.apache.cxf.staxutils.DepthXMLStreamReader
close, 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FragmentStreamReader

public FragmentStreamReader(javax.xml.stream.XMLStreamReader reader)

FragmentStreamReader

public FragmentStreamReader(javax.xml.stream.XMLStreamReader reader,
                            boolean doDocEvents)
Method Detail

getEventType

public int getEventType()
Specified by:
getEventType in interface javax.xml.stream.XMLStreamReader
Overrides:
getEventType in class DepthXMLStreamReader

hasNext

public boolean hasNext()
                throws javax.xml.stream.XMLStreamException
Specified by:
hasNext in interface javax.xml.stream.XMLStreamReader
Overrides:
hasNext in class DepthXMLStreamReader
Throws:
javax.xml.stream.XMLStreamException

next

public final int next()
               throws javax.xml.stream.XMLStreamException
Specified by:
next in interface javax.xml.stream.XMLStreamReader
Overrides:
next in class DepthXMLStreamReader
Throws:
javax.xml.stream.XMLStreamException

isAdvanceAtEnd

public boolean isAdvanceAtEnd()

setAdvanceAtEnd

public void setAdvanceAtEnd(boolean a)
Set whether or not the FragmentStreamReader should move past the END_ELEMENT when it is done parsing.

Parameters:
advanceAtEnd -

Apache CXF API

Apache CXF