Top Description Methods
javax.xml.stream

public Interface EventFilter

Imports
javax.xml.stream.events.XMLEvent

This interface declares a simple filter interface that one can create to filter XMLEventReaders
Author
Copyright (c) 2009 by Oracle Corporation. All Rights Reserved.
Since
1.6
Version
1.0

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if this filter accepts this event, false otherwise
accept
(XMLEvent
the event to test
event
)

Tests whether this event is part of this stream.

Method Detail

acceptback to summary
public boolean accept(XMLEvent event)

Tests whether this event is part of this stream. This method will return true if this filter accepts this event and false otherwise.

Parameters
event:XMLEvent

the event to test

Returns:boolean

true if this filter accepts this event, false otherwise