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
Wraps a XMLStreamReader and provides optional START_DOCUMENT and END_DOCUMENT events.
-
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
ConstructorDescriptionFragmentStreamReader
(XMLStreamReader reader) FragmentStreamReader
(XMLStreamReader reader, boolean doDocEvents) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
hasNext()
boolean
boolean
boolean
boolean
boolean
final 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, isStandalone, nextTag, require, standaloneSet, toString
-
Constructor Details
-
FragmentStreamReader
-
FragmentStreamReader
-
-
Method Details
-
getEventType
public int getEventType()- Specified by:
getEventType
in interfaceXMLStreamReader
- Overrides:
getEventType
in classDepthXMLStreamReader
-
isCharacters
public boolean isCharacters()- Specified by:
isCharacters
in interfaceXMLStreamReader
- Overrides:
isCharacters
in classDepthXMLStreamReader
-
isEndElement
public boolean isEndElement()- Specified by:
isEndElement
in interfaceXMLStreamReader
- Overrides:
isEndElement
in classDepthXMLStreamReader
-
isStartElement
public boolean isStartElement()- Specified by:
isStartElement
in interfaceXMLStreamReader
- Overrides:
isStartElement
in classDepthXMLStreamReader
-
isWhiteSpace
public boolean isWhiteSpace()- Specified by:
isWhiteSpace
in interfaceXMLStreamReader
- Overrides:
isWhiteSpace
in classDepthXMLStreamReader
-
hasNext
- Specified by:
hasNext
in interfaceXMLStreamReader
- Overrides:
hasNext
in classDepthXMLStreamReader
- Throws:
XMLStreamException
-
next
- Specified by:
next
in interfaceXMLStreamReader
- Overrides:
next
in classDepthXMLStreamReader
- Throws:
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:
a
-
-