| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class StreamReaderDelegate extends Object implements XMLStreamReader
This is the base class for deriving an XMLStreamReader filter This class is designed to sit between an XMLStreamReader and an application's XMLStreamReader. By default each method does nothing but call the corresponding method on the parent interface.
Constructor Summary | |
---|---|
Construct an empty filter with no parent. |
|
StreamReaderDelegate(XMLStreamReader reader) Construct an filter with the specified parent. |
Method Summary | |
---|---|
void |
close() |
int |
|
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 |
|
String |
|
String |
|
int |
|
String |
|
Location |
|
QName |
getName() |
NamespaceContext |
|
int |
|
String |
getNamespacePrefix(int index) |
String |
|
String |
getNamespaceURI(int index) |
String |
getNamespaceURI(String prefix) |
XMLStreamReader |
Get the parent of this instance. |
String |
|
String |
|
String |
|
Object |
getProperty(String name) |
String |
getText() |
char[] |
|
int |
getTextCharacters(int sourceStart, char[] target, int targetStart, int length) |
int |
|
int |
|
String |
|
boolean |
hasName() |
boolean |
hasNext() |
boolean |
hasText() |
boolean |
isAttributeSpecified(int index) |
boolean |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
int |
next() |
int |
nextTag() |
void |
|
void |
setParent(XMLStreamReader reader) Set the parent of this instance. |
boolean |
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamReaderDelegate()
public StreamReaderDelegate(XMLStreamReader reader)
reader
- the parentMethod Detail |
---|
public void close() throws XMLStreamException
XMLStreamException
public int getAttributeCount()
public String getAttributeLocalName(int index)
index
public QName getAttributeName(int index)
index
public String getAttributeNamespace(int index)
index
public String getAttributePrefix(int index)
index
public String getAttributeType(int index)
index
public String getAttributeValue(int index)
index
public String getAttributeValue(String namespaceUri, String localName)
namespaceUri
localName
public String getCharacterEncodingScheme()
public String getElementText() throws XMLStreamException
XMLStreamException
public String getEncoding()
public int getEventType()
public String getLocalName()
public Location getLocation()
public QName getName()
public NamespaceContext getNamespaceContext()
public int getNamespaceCount()
public String getNamespacePrefix(int index)
index
public String getNamespaceURI()
public String getNamespaceURI(int index)
index
public String getNamespaceURI(String prefix)
prefix
public XMLStreamReader getParent()
public String getPIData()
public String getPITarget()
public String getPrefix()
public Object getProperty(String name)
name
public String getText()
public char[] getTextCharacters()
public int getTextCharacters(int sourceStart, char[] target, int targetStart, int length) throws XMLStreamException
sourceStart
target
targetStart
length
XMLStreamException
public int getTextLength()
public int getTextStart()
public String getVersion()
public boolean hasName()
public boolean hasNext() throws XMLStreamException
XMLStreamException
public boolean hasText()
public boolean isAttributeSpecified(int index)
index
public boolean isCharacters()
public boolean isEndElement()
public boolean isStandalone()
public boolean isStartElement()
public boolean isWhiteSpace()
public int next() throws XMLStreamException
XMLStreamException
public int nextTag() throws XMLStreamException
XMLStreamException
public void require(int type, String namespaceURI, String localName) throws XMLStreamException
type
namespaceURI
localName
XMLStreamException
public void setParent(XMLStreamReader reader)
reader
- the new parentpublic boolean standaloneSet()
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |