## Uses of Interface
javax.xml.stream.XMLStreamConstants

- Packages that use XMLStreamConstants
  Package | Description
  --- | ---
  javax.xml.stream |
  javax.xml.stream.events |
  javax.xml.stream.util |

- - ### Uses of XMLStreamConstants in javax.xml.stream

    Subinterfaces of XMLStreamConstants in javax.xml.stream
    Modifier and Type | Interface | Description
    --- | --- | ---
    `interface` | `XMLStreamReader` The XMLStreamReader interface allows forward, read-only access to XML.

  - ### Uses of XMLStreamConstants in javax.xml.stream.events

    Subinterfaces of XMLStreamConstants in javax.xml.stream.events
    Modifier and Type | Interface | Description
    --- | --- | ---
    `interface` | `Attribute` An interface that contains information about an attribute.
    `interface` | `Characters` This describes the interface to Characters events.
    `interface` | `Comment` An interface for comment events
    `interface` | `DTD` This is the top level interface for events dealing with DTDs
    `interface` | `EndDocument` A marker interface for the end of the document
    `interface` | `EndElement` An interface for the end element event.
    `interface` | `EntityDeclaration` An interface for handling Entity Declarations This interface is used to record and report unparsed entity declarations.
    `interface` | `EntityReference` An interface for handling Entity events.
    `interface` | `Namespace` An interface that contains information about a namespace.
    `interface` | `NotationDeclaration` An interface for handling Notation Declarations Receive notification of a notation declaration event.
    `interface` | `ProcessingInstruction` An interface that describes the data found in processing instructions
    `interface` | `StartDocument` An interface for the start document event
    `interface` | `StartElement` The StartElement interface provides access to information about start elements.
    `interface` | `XMLEvent` This is the base event interface for handling markup events.

  - ### Uses of XMLStreamConstants in javax.xml.stream.util

    Classes in javax.xml.stream.util that implement XMLStreamConstants
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `StreamReaderDelegate` This is the base class for deriving an XMLStreamReader filter This class is designed to sit between an XMLStreamReader and an application's XMLStreamReader.

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, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.