Spec-Zone.ru › OpenJDK 25

Interface XMLStreamConstants

All Known Subinterfaces:
Attribute, Characters, Comment, DTD, EndDocument, EndElement, EntityDeclaration, EntityReference, Namespace, NotationDeclaration, ProcessingInstruction, StartDocument, StartElement, XMLEvent, XMLStreamReader
All Known Implementing Classes:
StreamReaderDelegate
public interface XMLStreamConstants
This interface declares the constants used in this API. Numbers in the range 0 to 256 are reserved for the specification, user defined events must use event codes outside that range.
Since:
1.6

Field Summary

Modifier and Type Field Description
static final int ATTRIBUTE
Indicates an event is an attribute
static final int CDATA
Indicates an event is a CDATA section
static final int CHARACTERS
Indicates an event is characters
static final int COMMENT
Indicates an event is a comment
static final int DTD
Indicates an event is a DTD
static final int END_DOCUMENT
Indicates an event is an end document
static final int END_ELEMENT
Indicates an event is an end element
static final int ENTITY_DECLARATION
Indicates a Entity Declaration
static final int ENTITY_REFERENCE
Indicates an event is an entity reference
static final int NAMESPACE
Indicates the event is a namespace declaration
static final int NOTATION_DECLARATION
Indicates a Notation
static final int PROCESSING_INSTRUCTION
Indicates an event is a processing instruction
static final int SPACE
The characters are white space (see [XML], 2.10 "White Space Handling").
static final int START_DOCUMENT
Indicates an event is a start document
static final int START_ELEMENT
Indicates an event is a start element

Field Details

START_ELEMENT

static final int START_ELEMENT
Indicates an event is a start element
See Also:
  • StartElement
  • Constant Field Values

END_ELEMENT

static final int END_ELEMENT
Indicates an event is an end element
See Also:
  • EndElement
  • Constant Field Values

PROCESSING_INSTRUCTION

static final int PROCESSING_INSTRUCTION
Indicates an event is a processing instruction
See Also:
  • ProcessingInstruction
  • Constant Field Values

CHARACTERS

static final int CHARACTERS
Indicates an event is characters
See Also:
  • Characters
  • Constant Field Values

COMMENT

static final int COMMENT
Indicates an event is a comment
See Also:
  • Comment
  • Constant Field Values

SPACE

static final int SPACE
The characters are white space (see [XML], 2.10 "White Space Handling"). Events are only reported as SPACE if they are ignorable white space. Otherwise they are reported as CHARACTERS.
See Also:
  • Characters
  • Constant Field Values

START_DOCUMENT

static final int START_DOCUMENT
Indicates an event is a start document
See Also:
  • StartDocument
  • Constant Field Values

END_DOCUMENT

static final int END_DOCUMENT
Indicates an event is an end document
See Also:
  • EndDocument
  • Constant Field Values

ENTITY_REFERENCE

static final int ENTITY_REFERENCE
Indicates an event is an entity reference
See Also:
  • EntityReference
  • Constant Field Values

ATTRIBUTE

static final int ATTRIBUTE
Indicates an event is an attribute
See Also:
  • Attribute
  • Constant Field Values

DTD

static final int DTD
Indicates an event is a DTD
See Also:
  • DTD
  • Constant Field Values

CDATA

static final int CDATA
Indicates an event is a CDATA section
See Also:
  • Characters
  • Constant Field Values

NAMESPACE

static final int NAMESPACE
Indicates the event is a namespace declaration
See Also:
  • Namespace
  • Constant Field Values

NOTATION_DECLARATION

static final int NOTATION_DECLARATION
Indicates a Notation
See Also:
  • NotationDeclaration
  • Constant Field Values

ENTITY_DECLARATION

static final int ENTITY_DECLARATION
Indicates a Entity Declaration
See Also:
  • NotationDeclaration
  • Constant Field Values

Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Other versions.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2025, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.

© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/25/docs/api/java.xml/javax/xml/stream/XMLStreamConstants.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API