FileDocCategorySizeDatePackage
EventReaderDelegate.javaAPI DocJava SE 6 API2319Tue Jun 10 00:27:10 BST 2008javax.xml.stream.util

EventReaderDelegate

public class EventReaderDelegate extends Object implements XMLEventReader
This is the base class for deriving an XMLEventReader filter. This class is designed to sit between an XMLEventReader and an application's XMLEventReader. 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.XMLEventReader
see
StreamReaderDelegate
since
1.6

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

public EventReaderDelegate(XMLEventReader reader)
Construct an filter with the specified parent.

param
reader the parent

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

    reader.close();
  
public java.lang.StringgetElementText()

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

return
the parent or null if none is set

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

    return reader.getProperty(name);
  
public booleanhasNext()

    return reader.hasNext();
  
public java.lang.Objectnext()

    return reader.next();
  
public javax.xml.stream.events.XMLEventnextEvent()

    return reader.nextEvent();
  
public javax.xml.stream.events.XMLEventnextTag()

    return reader.nextTag();
  
public javax.xml.stream.events.XMLEventpeek()

    return reader.peek();
  
public voidremove()

    reader.remove();
  
public voidsetParent(javax.xml.stream.XMLEventReader reader)
Set the parent of this instance.

param
reader the new parent

    this.reader = reader;