javax.xml.stream
Interface StreamFilter

All Superinterfaces:
XMLFilter

public interface StreamFilter
extends XMLFilter

This interface declares a simple filter interface that one can create to filter XMLStreamReaders


Method Summary
 boolean accept(XMLStreamReader reader)
          Tests whether the current state is part of this stream.
 

Method Detail

accept

public boolean accept(XMLStreamReader reader)
Tests whether the current state is part of this stream. This method will return true if this filter accepts this event and false otherwise.

Returns:
true if this filter accepts this event, false otherwise