01: package javax.xml.stream;
02:
03: /**
04: * This interface declares a simple filter interface that one can
05: * create to filter XMLStreamReaders
06: * @version 1.0
07: * @author Copyright (c) 2003 by BEA Systems. All Rights Reserved.
08: */
09: public interface StreamFilter {
10:
11: /**
12: * Tests whether the current state is part of this stream. This method
13: * will return true if this filter accepts this event and false otherwise.
14: *
15: * The method should not change the state of the reader when accepting
16: * a state.
17: *
18: * @param reader the event to test
19: * @return true if this filter accepts this event, false otherwise
20: */
21: public boolean accept(XMLStreamReader reader);
22: }
|