FileDocCategorySizeDatePackage
StreamReaderDelegate.javaAPI DocJava SE 6 API5850Tue Jun 10 00:27:12 BST 2008javax.xml.stream.util

StreamReaderDelegate

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.
version
1.0
author
Copyright (c) 2003 by BEA Systems. All Rights Reserved.
see
javax.xml.stream.XMLStreamReader
see
EventReaderDelegate
since
1.6

Fields Summary
private XMLStreamReader
reader
Constructors Summary
public StreamReaderDelegate()
Construct an empty filter with no parent.

public StreamReaderDelegate(XMLStreamReader reader)
Construct an filter with the specified parent.

param
reader the parent

    this.reader = reader;
  
Methods Summary
public voidclose()

    reader.close();
  
public intgetAttributeCount()

    return reader.getAttributeCount();
  
public java.lang.StringgetAttributeLocalName(int index)

    return reader.getAttributeLocalName(index);
  
public javax.xml.namespace.QNamegetAttributeName(int index)

    return reader.getAttributeName(index);
  
public java.lang.StringgetAttributeNamespace(int index)

    return reader.getAttributeNamespace(index);
  
public java.lang.StringgetAttributePrefix(int index)

    return reader.getAttributePrefix(index);
  
public java.lang.StringgetAttributeType(int index)

    return reader.getAttributeType(index);
  
public java.lang.StringgetAttributeValue(java.lang.String namespaceUri, java.lang.String localName)

    return reader.getAttributeValue(namespaceUri,localName);
  
public java.lang.StringgetAttributeValue(int index)

    return reader.getAttributeValue(index);
  
public java.lang.StringgetCharacterEncodingScheme()

    return reader.getCharacterEncodingScheme();
  
public java.lang.StringgetElementText()

    return reader.getElementText();
  
public java.lang.StringgetEncoding()

    return reader.getEncoding();
  
public intgetEventType()

    return reader.getEventType();
  
public java.lang.StringgetLocalName()

    return reader.getLocalName();
  
public javax.xml.stream.LocationgetLocation()

    return reader.getLocation();
  
public javax.xml.namespace.QNamegetName()

    return reader.getName();
  
public javax.xml.namespace.NamespaceContextgetNamespaceContext()

    return reader.getNamespaceContext();
  
public intgetNamespaceCount()

    return reader.getNamespaceCount();
  
public java.lang.StringgetNamespacePrefix(int index)

    return reader.getNamespacePrefix(index);
  
public java.lang.StringgetNamespaceURI(java.lang.String prefix)

    return reader.getNamespaceURI(prefix);
  
public java.lang.StringgetNamespaceURI(int index)

    return reader.getNamespaceURI(index);
  
public java.lang.StringgetNamespaceURI()

    return reader.getNamespaceURI();
  
public java.lang.StringgetPIData()

    return reader.getPIData();
  
public java.lang.StringgetPITarget()

    return reader.getPITarget();
  
public javax.xml.stream.XMLStreamReadergetParent()
Get the parent of this instance.

return
the parent or null if none is set

    return reader;
  
public java.lang.StringgetPrefix()

    return reader.getPrefix();
  
public java.lang.ObjectgetProperty(java.lang.String name)

    return reader.getProperty(name);
  
public java.lang.StringgetText()

    return reader.getText();
  
public intgetTextCharacters(int sourceStart, char[] target, int targetStart, int length)

    return reader.getTextCharacters(sourceStart,
                                    target,
                                    targetStart,
                                    length);
  
public char[]getTextCharacters()

    return reader.getTextCharacters();
  
public intgetTextLength()

    return reader.getTextLength();
  
public intgetTextStart()

    return reader.getTextStart();
  
public java.lang.StringgetVersion()

    return reader.getVersion();
  
public booleanhasName()

    return reader.hasName();
  
public booleanhasNext()

    return reader.hasNext();
  
public booleanhasText()

    return reader.hasText();
  
public booleanisAttributeSpecified(int index)

    return reader.isAttributeSpecified(index);
  
public booleanisCharacters()

    return reader.isCharacters();
  
public booleanisEndElement()

    return reader.isEndElement();
  
public booleanisStandalone()

    return reader.isStandalone();
  
public booleanisStartElement()

    return reader.isStartElement();
  
public booleanisWhiteSpace()

    return reader.isWhiteSpace();
  
public intnext()

    return reader.next();
  
public intnextTag()

    return reader.nextTag();
  
public voidrequire(int type, java.lang.String namespaceURI, java.lang.String localName)

    reader.require(type,namespaceURI,localName);
  
public voidsetParent(javax.xml.stream.XMLStreamReader reader)
Set the parent of this instance.

param
reader the new parent

    this.reader = reader;
  
public booleanstandaloneSet()

    return reader.standaloneSet();