KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public interface EventFilter {
11   /**
12    * Tests whether this event is part of this stream. This method
13    * will return true if this filter accepts this event and false
14    * otherwise.
15    *
16    * @param event the event to test
17    * @return true if this filter accepts this event, false otherwise
18    */

19   public boolean accept(XMLEvent event);
20 }
21
Popular Tags