| Package | Description | 
|---|---|
| javax.xml.stream | |
| javax.xml.stream.events | |
| javax.xml.stream.util | 
| Modifier and Type | Method and Description | 
|---|---|
| XMLEvent | XMLEventReader. nextEvent()Get the next XMLEvent | 
| XMLEvent | XMLEventReader. nextTag()Skips any insignificant space events until a START_ELEMENT or
 END_ELEMENT is reached. | 
| XMLEvent | XMLEventReader. peek()Check the next XMLEvent without reading it from the stream. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | EventFilter. accept(XMLEvent event)Tests whether this event is part of this stream. | 
| void | XMLEventWriter. add(XMLEvent event)Add an event to the output stream
 Adding a START_ELEMENT will open a new namespace scope that
 will be closed when the corresponding END_ELEMENT is written. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | AttributeAn interface that contains information about an attribute. | 
| interface  | CharactersThis describes the interface to Characters events. | 
| interface  | CommentAn interface for comment events | 
| interface  | DTDThis is the top level interface for events dealing with DTDs | 
| interface  | EndDocumentA marker interface for the end of the document | 
| interface  | EndElementAn interface for the end element event. | 
| interface  | EntityDeclarationAn interface for handling Entity Declarations
 This interface is used to record and report unparsed entity declarations. | 
| interface  | EntityReferenceAn interface for handling Entity events. | 
| interface  | NamespaceAn interface that contains information about a namespace. | 
| interface  | NotationDeclarationAn interface for handling Notation Declarations
 Receive notification of a notation declaration event. | 
| interface  | ProcessingInstructionAn interface that describes the data found in processing instructions | 
| interface  | StartDocumentAn interface for the start document event | 
| interface  | StartElementThe StartElement interface provides access to information about
 start elements. | 
| Modifier and Type | Method and Description | 
|---|---|
| XMLEvent | XMLEventAllocator. allocate(XMLStreamReader reader)This method allocates an event given the current
 state of the XMLStreamReader. | 
| XMLEvent | EventReaderDelegate. nextEvent() | 
| XMLEvent | EventReaderDelegate. nextTag() | 
| XMLEvent | EventReaderDelegate. peek() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | XMLEventConsumer. add(XMLEvent event)This method adds an event to the consumer. | 
 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, 2023, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.