KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > xml > stream > StreamFilter


1 package javax.xml.stream;
2 /**
3  * This interface declares a simple filter interface that one can
4  * create to filter XMLStreamReaders
5  * @version 1.0
6  * @author Copyright (c) 2003 by BEA Systems. All Rights Reserved.
7  * @since 1.6
8  */

9 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 }
23
Popular Tags