Package javax.xml.stream
Interface XMLStreamReader
- All Superinterfaces:
XMLStreamConstants
- All Known Implementing Classes:
StreamReaderDelegate
-
Field Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
getAttributeLocalName
(int index) getAttributeName
(int index) getAttributeNamespace
(int index) getAttributePrefix
(int index) getAttributeType
(int index) getAttributeValue
(int index) getAttributeValue
(String namespaceURI, String localName) int
getName()
int
getNamespacePrefix
(int index) getNamespaceURI
(int index) getNamespaceURI
(String prefix) getProperty
(String name) getText()
char[]
int
getTextCharacters
(int sourceStart, char[] target, int targetStart, int length) int
int
boolean
hasName()
boolean
hasNext()
boolean
hasText()
boolean
isAttributeSpecified
(int index) boolean
boolean
boolean
boolean
boolean
int
next()
int
nextTag()
void
boolean
-
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()
-