In particular, methods for using StAX (javax.xml.stream) in combination with
the TrAX API (javax.xml.transform), and converting StAX readers/writers into SAX
readers/handlers and vice-versa.
| Modifier and Type | Field and Description |
|---|---|
| private static final XMLResolver |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ContentHandler | Returns: a content handler writing to thestreamWriterthe StAX stream writer streamWriter)Create a SAX |
| public static ContentHandler | Returns: a content handler writing to theeventWriterthe StAX event writer eventWriter)Create a SAX |
| public static Result | Returns: a source wrapping thestreamWriterthe StAX stream writer streamWriter)Create a custom, non-JAXP 1.4 StAX |
| public static Result | Returns: a source wrapping theeventWriterthe StAX event writer eventWriter)Create a custom, non-JAXP 1.4 StAX |
| public static Source | Returns: a source wrapping thestreamReaderthe StAX stream reader streamReader)Create a custom, non-JAXP 1.4 StAX |
| public static Source | Returns: a source wrapping theeventReaderthe StAX event reader eventReader)Create a custom, non-JAXP 1.4 StAX |
| public static XMLInputFactory | Returns: a new defensively initialized input factory instance to useCreate an |
| public static <T extends XMLInputFactory> T | Returns: a new defensively initialized input factory instance to usesupplier for the input factory instance instanceSupplier)Variant of |
| public static XMLStreamReader | Returns: a stream reader that reads from an event readerReturn a |
| public static XMLStreamWriter | Returns: a stream writer that writes to an event writerReturn a |
| public static XMLStreamWriter | Returns: a stream writer that writes to an event writerReturn a |
| public static Result | Returns: a result wrapping thestreamWriterthe StAX stream writer streamWriter)Create a JAXP 1.4 |
| public static Result | Returns: a result wrappingstreamReaderthe StAX event writer eventWriter)Create a JAXP 1.4 |
| public static Source | Returns: a source wrapping thestreamReaderthe StAX stream reader streamReader)Create a JAXP 1.4 |
| public static Source | Returns: a source wrapping theeventReaderthe StAX event reader eventReader)Create a JAXP 1.4 |
| public static XMLEventReader | Returns: anXMLEventReader that reads from the given eventsthe list of events)XMLEvents.Create a |
| public static XMLReader | Returns: a XMLReader reading from thestreamWriterthe StAX stream reader streamReader)Create a SAX |
| public static XMLReader | Returns: a XMLReader reading from theeventWriterthe StAX event reader eventReader)Create a SAX |
| public static XMLEventReader | Returns: theXMLEventReadera JAXP 1.4 source)StAXSourceReturn the |
| public static XMLEventWriter | Returns: theXMLStreamReadera JAXP 1.4 result)StAXResultReturn the |
| public static XMLStreamReader | Returns: theXMLStreamReadera JAXP 1.4 source)StAXSourceReturn the |
| public static XMLStreamWriter | Returns: theXMLStreamReadera JAXP 1.4 result)StAXResultReturn the |
| public static boolean | isStaxResult(Result result)
Indicate whether the given |
| public static boolean | isStaxSource(Source source)
Indicate whether the given |
| NO_OP_XML_RESOLVER | back to summary |
|---|---|
| private static final XMLResolver NO_OP_XML_RESOLVER | |
| StaxUtils | back to summary |
|---|---|
| public StaxUtils() | |
| createContentHandler | back to summary |
|---|---|
| public static ContentHandler createContentHandler(XMLStreamWriter streamWriter) Create a SAX
| |
| createContentHandler | back to summary |
|---|---|
| public static ContentHandler createContentHandler(XMLEventWriter eventWriter) Create a SAX
| |
| createCustomStaxResult | back to summary |
|---|---|
| public static Result createCustomStaxResult(XMLStreamWriter streamWriter) Create a custom, non-JAXP 1.4 StAX
| |
| createCustomStaxResult | back to summary |
|---|---|
| public static Result createCustomStaxResult(XMLEventWriter eventWriter) Create a custom, non-JAXP 1.4 StAX
| |
| createCustomStaxSource | back to summary |
|---|---|
| public static Source createCustomStaxSource(XMLStreamReader streamReader) Create a custom, non-JAXP 1.4 StAX
| |
| createCustomStaxSource | back to summary |
|---|---|
| public static Source createCustomStaxSource(XMLEventReader eventReader) Create a custom, non-JAXP 1.4 StAX
| |
| createDefensiveInputFactory | back to summary |
|---|---|
| public static XMLInputFactory createDefensiveInputFactory() Create an
| |
| createDefensiveInputFactory | back to summary |
|---|---|
| public static <T extends XMLInputFactory> T createDefensiveInputFactory(Supplier<T> instanceSupplier) Variant of
| |
| createEventStreamReader | back to summary |
|---|---|
| public static XMLStreamReader createEventStreamReader(XMLEventReader eventReader) throws XMLStreamException Return a
| |
| createEventStreamWriter | back to summary |
|---|---|
| public static XMLStreamWriter createEventStreamWriter(XMLEventWriter eventWriter) Return a
| |
| createEventStreamWriter | back to summary |
|---|---|
| public static XMLStreamWriter createEventStreamWriter(XMLEventWriter eventWriter, XMLEventFactory eventFactory) Return a
| |
| createStaxResult | back to summary |
|---|---|
| public static Result createStaxResult(XMLStreamWriter streamWriter) Create a JAXP 1.4
| |
| createStaxResult | back to summary |
|---|---|
| public static Result createStaxResult(XMLEventWriter eventWriter) Create a JAXP 1.4
| |
| createStaxSource | back to summary |
|---|---|
| public static Source createStaxSource(XMLStreamReader streamReader) Create a JAXP 1.4
| |
| createStaxSource | back to summary |
|---|---|
| public static Source createStaxSource(XMLEventReader eventReader) throws XMLStreamException Create a JAXP 1.4
| |
| createXMLEventReader | back to summary |
|---|---|
| public static XMLEventReader createXMLEventReader(List<XMLEvent> events) Create a
| |
| createXMLReader | back to summary |
|---|---|
| public static XMLReader createXMLReader(XMLStreamReader streamReader) Create a SAX
| |
| createXMLReader | back to summary |
|---|---|
| public static XMLReader createXMLReader(XMLEventReader eventReader) Create a SAX
| |
| getXMLEventReader | back to summary |
|---|---|
| public static XMLEventReader getXMLEventReader(Source source) Return the
| |
| getXMLEventWriter | back to summary |
|---|---|
| public static XMLEventWriter getXMLEventWriter(Result result) Return the
| |
| getXMLStreamReader | back to summary |
|---|---|
| public static XMLStreamReader getXMLStreamReader(Source source) Return the
| |
| getXMLStreamWriter | back to summary |
|---|---|
| public static XMLStreamWriter getXMLStreamWriter(Result result) Return the
| |
| isStaxResult | back to summary |
|---|---|
| public static boolean isStaxResult(Result result) Indicate whether the given
| |
| isStaxSource | back to summary |
|---|---|
| public static boolean isStaxSource(Source source) Indicate whether the given
| |