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.
-
Interface Summary Interface Description ExtendedLocation ExtendedNamespaceContext Extended namespace context interface that allows the context tree to be navigated and to list all known prefixes.Indentation Characters that represent line breaks and indentation.StaticLocation Marker interface used to denoteLocation
implementations whose state is not transient or dependent on external objects/events and will remain stable unless explicitly updated.StaticNamespaceContext Marker interface used to denoteNamespaceContext
implementations whose state is not transient or dependent on external objects/events and will remain stable unless explicitly updated.StAXReaderToContentHandler Common API's for adapting StAX events fromXMLStreamReader
andXMLEventReader
into SAX events on the specifiedContentHandler
. -
Class Summary Class Description BaseXMLEventReader Abstract base class forXMLEventReader
implementations.BaseXMLEventWriter Base class forXMLEventWriter
implementations.BaseXMLInputFactory BaseXMLOutputFactory BaseXMLOutputFactory
that provides common event functionality.BaseXMLStreamReader Abstract base class forXMLStreamReader
implementations.ContentHandlerToXMLEventWriter This is a simple utility class that adapts SAX events into StAXXMLEventWriter
events, bridging between the two parser technologies.ContentHandlerToXMLStreamWriter This is a simple utility class that adapts SAX events into StAXXMLStreamWriter
events, bridging between the two parser technologies.DummyLocator A dummy locator that returns -1 and null from all methods to indicate that location info is not available.EmptyNamespaceContext ExtendedNamespaceContext
that contains no namespaces.IndentingXMLEventWriter A filter that indents an XML stream.IndentingXMLStreamWriter A filter that indents an XML stream.NamespaceContextAdapter NamespaceContext
that wraps another context.OutputFactory XMLOutputFactory
implementation based on stax-utils code base.SimpleLocation Basic implementation ofExtendedLocation
.SimpleNamespaceContext Simple NamespaceContext implementation backed by a HashMap.StAXContentHandler Base class for SAX-to-STAX bridge classes that provides common functionality.StAXEventContentHandler SAX ContentHandler that writes events to a StAXXMLEventConsumer
.StAXResult A JAXPResult
implementation that produces a result on the specifiedXMLStreamWriter
orXMLEventWriter
.StAXSource A JAXPSource
implementation that wraps the specifiedXMLStreamReader
orXMLEventReader
for use by applications that expext aSource
.StAXStreamContentHandler SAX ContentHandler that writes events to a StAXXMLStreamWriter
.StaxUtilsXMLOutputFactory An output factory that optionally wraps a filter around each writer.XMLEventConsumerDelegate Writes all events to a wrappedXMLEventConsumer
, and provides convenience methods for creating events written to the internal consumer.XMLEventPipe Provides the ability to pipe theXMLEvent
s written to oneXMLEventWriter
to be read from aXMLEventReader
.XMLEventReaderToContentHandler This is a simple utility class that adapts StAX events from anXMLEventReader
to SAX events on aContentHandler
, bridging between the two parser technologies.XMLEventStreamWriter AnXMLStreamWriter
that writes events to aXMLEventWriter
.XMLStreamEventReader XMLStreamEventWriter XMLEventWriter
that writes events to aXMLStreamWriter
.XMLStreamReaderToContentHandler This is a simple utility class that adapts StAX events from anXMLStreamReader
to SAX events on aContentHandler
, bridging between the two parser technologies.XMLStreamUtils Static utility methods useful when handling XML Streams.