|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.stream Interface StreamFilter
public interface StreamFilter
此接口声明了一个简单的过滤器接口,用户可创建它来过滤 XMLStreamReader。
version | 1.0 |
This interface declares a simple filter interface that one can create to filter XMLStreamReaders
- Version:
- 1.0
- Author:
- Copyright (c) 2003 by BEA Systems. All Rights Reserved.
Method Summary | |
---|---|
boolean |
accept(XMLStreamReader reader)
Tests whether the current state is part of this stream. |
Method Detail |
---|
public boolean
accept(XMLStreamReader reader)
测试当前状态是否为此流的一部分。如果此过滤器接受此事件,则此方法返回 true,否则返回 false。此方法不应在接受状态时更改 reader 的状态。
reader | 要测试的事件 |
return | 如果此过滤器接收此事件,则返回 true,否则返回 false |
accept
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
- the event to test- Returns:
- true if this filter accepts this event, false otherwise
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!