javax.xml.stream
Interface XMLStreamReader

All Superinterfaces:
XMLStreamConstants
All Known Implementing Classes:
StreamReaderDelegate

public interface XMLStreamReader
extends XMLStreamConstants


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
 void close()
           
 int getAttributeCount()
           
 String getAttributeLocalName(int index)
           
 QName getAttributeName(int index)
           
 String getAttributeNamespace(int index)
           
 String getAttributePrefix(int index)
           
 String getAttributeType(int index)
           
 String getAttributeValue(int index)
           
 String getAttributeValue(String namespaceURI, String localName)
           
 String getCharacterEncodingScheme()
           
 String getElementText()
           
 String getEncoding()
           
 int getEventType()
           
 String getLocalName()
           
 Location getLocation()
           
 QName getName()
           
 NamespaceContext getNamespaceContext()
           
 int getNamespaceCount()
           
 String getNamespacePrefix(int index)
           
 String getNamespaceURI()
           
 String getNamespaceURI(int index)
           
 String getNamespaceURI(String prefix)
           
 String getPIData()
           
 String getPITarget()
           
 String getPrefix()
           
 Object getProperty(String name)
           
 String getText()
           
 char[] getTextCharacters()
           
 int getTextCharacters(int sourceStart, char[] target, int targetStart, int length)
           
 int getTextLength()
           
 int getTextStart()
           
 String getVersion()
           
 boolean hasName()
           
 boolean hasNext()
           
 boolean hasText()
           
 boolean isAttributeSpecified(int index)
           
 boolean isCharacters()
           
 boolean isEndElement()
           
 boolean isStandalone()
           
 boolean isStartElement()
           
 boolean isWhiteSpace()
           
 int next()
           
 int nextTag()
           
 void require(int type, String namespaceURI, String localName)
           
 boolean standaloneSet()
           
 

Method Detail

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-2011 The Apache Software Foundation. All Rights Reserved.