XMLEventConsumer (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.xml.stream.util Interface XMLEventConsumer

所有已知子接口:
XMLEventWriter

public interface XMLEventConsumer

This interface defines an event consumer interface. The contract of the of a consumer is to accept the event. This interface can be used to mark an object as able to receive events. Add may be called several times in immediate succession so a consumer must be able to cache events it hasn't processed yet.

版本:
1.0
作者:
Copyright (c) 2003 by BEA Systems. All Rights Reserved.

方法摘要
 void add(XMLEvent event)
          This method adds an event to the consumer.
 

方法详细信息

add

void add(XMLEvent event)
         throws XMLStreamException
This method adds an event to the consumer. Calling this method invalidates the event parameter. The client application should discard all references to this event upon calling add. The behavior of an application that continues to use such references is undefined.

参数:
event - the event to add, may not be null
抛出异常:
XMLStreamException

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.