Package javanet.staxutils
package javanet.staxutils
Provides a set of utility classes that make it easy for developers to work
with JSR-173: Streaming API for
XML (StAX) and integrate it into their existing XML processing
applications.
-
ClassDescriptionAbstract base class for
XMLEventReader
implementations.Base class forXMLEventWriter
implementations.BaseXMLOutputFactory
that provides common event functionality.Abstract base class forXMLStreamReader
implementations.This is a simple utility class that adapts SAX events into StAXXMLEventWriter
events, bridging between the two parser technologies.This is a simple utility class that adapts SAX events into StAXXMLStreamWriter
events, bridging between the two parser technologies.A dummy locator that returns -1 and null from all methods to indicate that location info is not available.ExtendedNamespaceContext
that contains no namespaces.Extended namespace context interface that allows the context tree to be navigated and to list all known prefixes.Characters that represent line breaks and indentation.A filter that indents an XML stream.A filter that indents an XML stream.NamespaceContext
that wraps another context.XMLOutputFactory
implementation based on stax-utils code base.Basic implementation ofExtendedLocation
.Simple NamespaceContext implementation backed by a HashMap.Marker interface used to denoteLocation
implementations whose state is not transient or dependent on external objects/events and will remain stable unless explicitly updated.Marker interface used to denoteNamespaceContext
implementations whose state is not transient or dependent on external objects/events and will remain stable unless explicitly updated.Base class for SAX-to-STAX bridge classes that provides common functionality.SAX ContentHandler that writes events to a StAXXMLEventConsumer
.Common API's for adapting StAX events fromXMLStreamReader
andXMLEventReader
into SAX events on the specifiedContentHandler
.A JAXPResult
implementation that produces a result on the specifiedXMLStreamWriter
orXMLEventWriter
.A JAXPSource
implementation that wraps the specifiedXMLStreamReader
orXMLEventReader
for use by applications that expext aSource
.SAX ContentHandler that writes events to a StAXXMLStreamWriter
.An output factory that optionally wraps a filter around each writer.Writes all events to a wrappedXMLEventConsumer
, and provides convenience methods for creating events written to the internal consumer.Provides the ability to pipe theXMLEvent
s written to oneXMLEventWriter
to be read from aXMLEventReader
.This is a simple utility class that adapts StAX events from anXMLEventReader
to SAX events on aContentHandler
, bridging between the two parser technologies.AnXMLStreamWriter
that writes events to aXMLEventWriter
.XMLEventWriter
that writes events to aXMLStreamWriter
.This is a simple utility class that adapts StAX events from anXMLStreamReader
to SAX events on aContentHandler
, bridging between the two parser technologies.Static utility methods useful when handling XML Streams.