JavaScript is disabled on your browser.
Skip navigation links
Java SE 21 & JDK 21
Overview
Module
Package
Class
Use
Tree
Preview
New
Deprecated
Index
Help
Summary:
Nested
Field
Constr
Method
Detail:
Field
Constr
Method
Summary:
Nested |
Field |
Constr |
Method
Detail:
Field |
Constr |
Method
SEARCH
Module
java.xml
Package
javax.xml.stream
Interface EventFilter
public interface
EventFilter
这个接口声明了一个简单的过滤器接口,可以用来过滤XMLEventReaders
自从:
1.6
Method Summary
All Methods
Instance Methods
Abstract Methods
Modifier and Type
Method
Description
boolean
accept
(
XMLEvent
event)
测试此事件是否属于此流。
Method Details
accept
boolean
accept
(
XMLEvent
event)
测试此事件是否属于此流。如果此过滤器接受此事件,则此方法将返回true,否则返回false。
参数:
event
- 要测试的事件
返回:
如果此过滤器接受此事件,则返回true,否则返回false