Module java.xml
Package javax.xml.stream
package javax.xml.stream
Defines interfaces and classes for the Streaming API for XML (StAX).
StAX provides two basic functions: the cursor API allowing users to read and write XML efficiently, and the event iterator API promoting ease of use that is event based, easy to extend and pipeline. The event iterator API is intended to layer on top of the cursor API.
The cursor API defines two interfaces: XMLStreamReader
and XMLStreamWriter
, while the event iterator API defines:
XMLEventReader
and XMLEventWriter
.
StAX supports plugability with XMLInputFactory
and
XMLOutputFactory
that define how an implementation is
located through a process as described in the newFactory
methods.
- Since:
- 1.6
-
InterfaceDescriptionThis interface declares a simple filter interface that one can create to filter XMLEventReadersProvides information on the location of an event.This interface declares a simple filter interface that one can create to filter XMLStreamReadersThis is the top level interface for parsing XML Events.This is the top level interface for writing XML documents.This interface is used to report non-fatal errors.This interface is used to resolve resources during an XML parse.This interface declares the constants used in this API.The XMLStreamReader interface allows forward, read-only access to XML.The XMLStreamWriter interface specifies how to write XML.
-
ClassDescriptionThis interface defines a utility class for creating instances of XMLEventsDefines an abstract implementation of a factory for getting streams.Defines an abstract implementation of a factory for getting XMLEventWriters and XMLStreamWriters.
-
ErrorDescriptionAn error class for reporting factory configuration errors.