站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Java Platform, Enterprise Edition v5.0 API Specifications

XMLEventConsumer (Java EE 5 SDK) - Java Platform, Enterprise Edition v5.0 API Specifications

Java EE 5 SDK

javax.xml.stream.util
Interface XMLEventConsumer

All Known Subinterfaces:
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.

Version:
1.0
Author:
Copyright (c) 2003 by BEA Systems. All Rights Reserved.

Method Summary
 void add(XMLEvent event)
          This method adds an event to the consumer.
 

Method Detail

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.

Parameters:
event - the event to add, may not be null
Throws:
XMLStreamException

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.