Top Description Methods
javax.xml.stream

public Interface StreamFilter


This interface declares a simple filter interface that one can create to filter XMLStreamReaders
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
(XMLStreamReader
the event to test
reader
)

Tests whether the current state is part of this stream.

Method Detail

acceptback to summary
public boolean accept(XMLStreamReader reader)

Tests whether the current state is part of this stream. This method will return true if this filter accepts this event and false otherwise. The method should not change the state of the reader when accepting a state.

Parameters
reader:XMLStreamReader

the event to test

Returns:boolean

true if this filter accepts this event, false otherwise