javax.xml.stream
Interface XMLStreamReader
- All Superinterfaces:
- XMLStreamConstants
- All Known Implementing Classes:
- StreamReaderDelegate
public interface XMLStreamReader
- extends XMLStreamConstants
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 |
close
void close()
throws XMLStreamException
- Throws:
XMLStreamException
getAttributeCount
int getAttributeCount()
getAttributeLocalName
String getAttributeLocalName(int index)
getAttributeName
QName getAttributeName(int index)
getAttributeNamespace
String getAttributeNamespace(int index)
getAttributePrefix
String getAttributePrefix(int index)
getAttributeType
String getAttributeType(int index)
getAttributeValue
String getAttributeValue(int index)
getAttributeValue
String getAttributeValue(String namespaceURI,
String localName)
getCharacterEncodingScheme
String getCharacterEncodingScheme()
getElementText
String getElementText()
throws XMLStreamException
- Throws:
XMLStreamException
getEncoding
String getEncoding()
getEventType
int getEventType()
getLocalName
String getLocalName()
getLocation
Location getLocation()
getName
QName getName()
getNamespaceContext
NamespaceContext getNamespaceContext()
getNamespaceCount
int getNamespaceCount()
getNamespacePrefix
String getNamespacePrefix(int index)
getNamespaceURI
String getNamespaceURI()
getNamespaceURI
String getNamespaceURI(int index)
getNamespaceURI
String getNamespaceURI(String prefix)
getPIData
String getPIData()
getPITarget
String getPITarget()
getPrefix
String getPrefix()
getProperty
Object getProperty(String name)
throws IllegalArgumentException
- 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
boolean hasNext()
throws XMLStreamException
- 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
int next()
throws XMLStreamException
- Throws:
XMLStreamException
nextTag
int nextTag()
throws XMLStreamException
- Throws:
XMLStreamException
require
void require(int type,
String namespaceURI,
String localName)
throws XMLStreamException
- Throws:
XMLStreamException
standaloneSet
boolean standaloneSet()
Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.