Package org.apache.cxf.staxutils
Class FragmentStreamReader
- java.lang.Object
- 
- org.apache.cxf.staxutils.DepthXMLStreamReader
- 
- org.apache.cxf.staxutils.FragmentStreamReader
 
 
- 
- All Implemented Interfaces:
- XMLStreamConstants,- XMLStreamReader
 
 public class FragmentStreamReader extends DepthXMLStreamReader Wraps a XMLStreamReader and provides optional START_DOCUMENT and END_DOCUMENT events.
- 
- 
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 FragmentStreamReader(XMLStreamReader reader)FragmentStreamReader(XMLStreamReader reader, boolean doDocEvents)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEventType()booleanhasNext()booleanisAdvanceAtEnd()booleanisCharacters()booleanisEndElement()booleanisStartElement()booleanisWhiteSpace()intnext()voidsetAdvanceAtEnd(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.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, isStandalone, nextTag, require, standaloneSet, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
FragmentStreamReaderpublic FragmentStreamReader(XMLStreamReader reader) 
 - 
FragmentStreamReaderpublic FragmentStreamReader(XMLStreamReader reader, boolean doDocEvents) 
 
- 
 - 
Method Detail- 
getEventTypepublic int getEventType() - Specified by:
- getEventTypein interface- XMLStreamReader
- Overrides:
- getEventTypein class- DepthXMLStreamReader
 
 - 
isCharacterspublic boolean isCharacters() - Specified by:
- isCharactersin interface- XMLStreamReader
- Overrides:
- isCharactersin class- DepthXMLStreamReader
 
 - 
isEndElementpublic boolean isEndElement() - Specified by:
- isEndElementin interface- XMLStreamReader
- Overrides:
- isEndElementin class- DepthXMLStreamReader
 
 - 
isStartElementpublic boolean isStartElement() - Specified by:
- isStartElementin interface- XMLStreamReader
- Overrides:
- isStartElementin class- DepthXMLStreamReader
 
 - 
isWhiteSpacepublic boolean isWhiteSpace() - Specified by:
- isWhiteSpacein interface- XMLStreamReader
- Overrides:
- isWhiteSpacein class- DepthXMLStreamReader
 
 - 
hasNextpublic boolean hasNext() throws XMLStreamException- Specified by:
- hasNextin interface- XMLStreamReader
- Overrides:
- hasNextin class- DepthXMLStreamReader
- Throws:
- XMLStreamException
 
 - 
nextpublic final int next() throws XMLStreamException- Specified by:
- nextin interface- XMLStreamReader
- Overrides:
- nextin class- DepthXMLStreamReader
- Throws:
- XMLStreamException
 
 - 
isAdvanceAtEndpublic boolean isAdvanceAtEnd() 
 - 
setAdvanceAtEndpublic void setAdvanceAtEnd(boolean a) Set whether or not the FragmentStreamReader should move past the END_ELEMENT when it is done parsing.- Parameters:
- a-
 
 
- 
 
-