javax.xml.stream.util

Class ReaderDelegate

public class ReaderDelegate extends Object implements XMLStreamReader, XMLStreamConstants

Base class for XML stream reader filters.
Constructor Summary
ReaderDelegate()
Constructs an empty filter with no parent set.
ReaderDelegate(XMLStreamReader reader)
Constructs an empty filter with the specfied parent.
Method Summary
voidclose()
intgetAttributeCount()
StringgetAttributeLocalName(int index)
QNamegetAttributeName(int index)
StringgetAttributeNamespace(int index)
StringgetAttributePrefix(int index)
StringgetAttributeType(int index)
StringgetAttributeValue(String namespaceUri, String localName)
StringgetAttributeValue(int index)
StringgetCharacterEncodingScheme()
StringgetElementText()
StringgetEncoding()
intgetEventType()
StringgetLocalName()
LocationgetLocation()
QNamegetName()
NamespaceContextgetNamespaceContext()
intgetNamespaceCount()
StringgetNamespacePrefix(int index)
StringgetNamespaceURI(String prefix)
StringgetNamespaceURI(int index)
StringgetNamespaceURI()
XMLStreamReadergetParent()
Returns the parent.
StringgetPIData()
StringgetPITarget()
StringgetPrefix()
ObjectgetProperty(String name)
StringgetText()
intgetTextCharacters(int sourceStart, char[] target, int targetStart, int length)
char[]getTextCharacters()
intgetTextLength()
intgetTextStart()
StringgetVersion()
booleanhasName()
booleanhasNext()
booleanhasText()
booleanisAttributeSpecified(int index)
booleanisCharacters()
booleanisEndElement()
booleanisStandalone()
booleanisStartElement()
booleanisWhiteSpace()
intnext()
intnextTag()
voidrequire(int type, String namespaceURI, String localName)
voidsetParent(XMLStreamReader reader)
Sets the parent.
booleanstandaloneSet()

Constructor Detail

ReaderDelegate

public ReaderDelegate()
Constructs an empty filter with no parent set.

ReaderDelegate

public ReaderDelegate(XMLStreamReader reader)
Constructs an empty filter with the specfied parent.

Method Detail

close

public void close()

getAttributeCount

public int getAttributeCount()

getAttributeLocalName

public String getAttributeLocalName(int index)

getAttributeName

public QName getAttributeName(int index)

getAttributeNamespace

public String getAttributeNamespace(int index)

getAttributePrefix

public String getAttributePrefix(int index)

getAttributeType

public String getAttributeType(int index)

getAttributeValue

public String getAttributeValue(String namespaceUri, String localName)

getAttributeValue

public String getAttributeValue(int index)

getCharacterEncodingScheme

public String getCharacterEncodingScheme()

getElementText

public String getElementText()

getEncoding

public String getEncoding()

getEventType

public int getEventType()

getLocalName

public String getLocalName()

getLocation

public Location getLocation()

getName

public QName getName()

getNamespaceContext

public NamespaceContext getNamespaceContext()

getNamespaceCount

public int getNamespaceCount()

getNamespacePrefix

public String getNamespacePrefix(int index)

getNamespaceURI

public String getNamespaceURI(String prefix)

getNamespaceURI

public String getNamespaceURI(int index)

getNamespaceURI

public String getNamespaceURI()

getParent

public XMLStreamReader getParent()
Returns the parent.

getPIData

public String getPIData()

getPITarget

public String getPITarget()

getPrefix

public String getPrefix()

getProperty

public Object getProperty(String name)

getText

public String getText()

getTextCharacters

public int getTextCharacters(int sourceStart, char[] target, int targetStart, int length)

getTextCharacters

public char[] getTextCharacters()

getTextLength

public int getTextLength()

getTextStart

public int getTextStart()

getVersion

public String getVersion()

hasName

public boolean hasName()

hasNext

public boolean hasNext()

hasText

public boolean hasText()

isAttributeSpecified

public boolean isAttributeSpecified(int index)

isCharacters

public boolean isCharacters()

isEndElement

public boolean isEndElement()

isStandalone

public boolean isStandalone()

isStartElement

public boolean isStartElement()

isWhiteSpace

public boolean isWhiteSpace()

next

public int next()

nextTag

public int nextTag()

require

public void require(int type, String namespaceURI, String localName)

setParent

public void setParent(XMLStreamReader reader)
Sets the parent.

standaloneSet

public boolean standaloneSet()