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