Java™ Platform
Standard Ed. 8
compact2, compact3
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.
    Since:
    1.6
    Version:
    1.0
    • 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™ Platform
Standard Ed. 8

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.

微信小程序

微信扫一扫体验

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部