Interface XMLStreamReader
- All Superinterfaces:
XMLStreamConstants
- All Known Implementing Classes:
StreamReaderDelegate
-
Field Summary
Fields inherited from interface XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intgetAttributeLocalName(int index) getAttributeName(int index) getAttributeNamespace(int index) getAttributePrefix(int index) getAttributeType(int index) getAttributeValue(int index) getAttributeValue(String namespaceURI, String localName) intgetName()intgetNamespacePrefix(int index) getNamespaceURI(int index) getNamespaceURI(String prefix) getProperty(String name) getText()char[]intgetTextCharacters(int sourceStart, char[] target, int targetStart, int length) intintbooleanhasName()booleanhasNext()booleanhasText()booleanisAttributeSpecified(int index) booleanbooleanbooleanbooleanbooleanintnext()intnextTag()voidboolean
-
Method Details
-
close
- Throws:
XMLStreamException
-
getAttributeCount
int getAttributeCount() -
getAttributeLocalName
-
getAttributeName
-
getAttributeNamespace
-
getAttributePrefix
-
getAttributeType
-
getAttributeValue
-
getAttributeValue
-
getCharacterEncodingScheme
String getCharacterEncodingScheme() -
getElementText
- Throws:
XMLStreamException
-
getEncoding
String getEncoding() -
getEventType
int getEventType() -
getLocalName
String getLocalName() -
getLocation
Location getLocation() -
getName
QName getName() -
getNamespaceContext
NamespaceContext getNamespaceContext() -
getNamespaceCount
int getNamespaceCount() -
getNamespacePrefix
-
getNamespaceURI
String getNamespaceURI() -
getNamespaceURI
-
getNamespaceURI
-
getPIData
String getPIData() -
getPITarget
String getPITarget() -
getPrefix
String getPrefix() -
getProperty
- Throws:
IllegalArgumentException
-
getText
String getText() -
getTextCharacters
char[] getTextCharacters() -
getTextCharacters
int getTextCharacters(int sourceStart, char[] target, int targetStart, int length) throws XMLStreamException - Throws:
XMLStreamException
-
getTextLength
int getTextLength() -
getTextStart
int getTextStart() -
getVersion
String getVersion() -
hasName
boolean hasName() -
hasNext
- Throws:
XMLStreamException
-
hasText
boolean hasText() -
isAttributeSpecified
boolean isAttributeSpecified(int index) -
isCharacters
boolean isCharacters() -
isEndElement
boolean isEndElement() -
isStandalone
boolean isStandalone() -
isStartElement
boolean isStartElement() -
isWhiteSpace
boolean isWhiteSpace() -
next
- Throws:
XMLStreamException
-
nextTag
- Throws:
XMLStreamException
-
require
- Throws:
XMLStreamException
-
standaloneSet
boolean standaloneSet()
-