XMLStreamReader to SAX events on a
ContentHandler, bridging between the two
parser technologies.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final boolean | fragment
If true, not start/endDocument event. |
| private final String[] | |
| private final ContentHandler | |
| private final XMLStreamReader |
| Access | Constructor and Description |
|---|---|
| public | XMLStreamReaderToContentHandler(XMLStreamReader
StAX event source staxCore, ContentHandler SAXevent sink saxCore, boolean eagerQuit, boolean fragment)
|
| public | XMLStreamReaderToContentHandler(XMLStreamReader
StAX event source staxCore, ContentHandler SAXevent sink saxCore, boolean eagerQuit, boolean fragment, String[] array of the even length of the form { prefix0, uri0, prefix1, uri1, ... } inscopeNamespaces)Construct a new StAX to SAX adapter that will convert a StAX event stream into a SAX event stream. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private static String | |
| private Attributes | Returns: the StAX attributes converted to an org.xml.sax.AttributesGet the attributes associated with the given START_ELEMENT or ATTRIBUTE StAXevent. |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void |
| eagerQuit | back to summary |
|---|---|
| private final boolean eagerQuit | |
| fragment | back to summary |
|---|---|
| private final boolean fragment If true, not start/endDocument event. | |
| inscopeNamespaces | back to summary |
|---|---|
| private final String[] inscopeNamespaces | |
| saxHandler | back to summary |
|---|---|
| private final ContentHandler saxHandler | |
| staxStreamReader | back to summary |
|---|---|
| private final XMLStreamReader staxStreamReader | |
| XMLStreamReaderToContentHandler | back to summary |
|---|---|
public XMLStreamReaderToContentHandler(XMLStreamReader staxCore, ContentHandler saxCore, boolean eagerQuit, boolean fragment)
| |
| XMLStreamReaderToContentHandler | back to summary |
|---|---|
| public XMLStreamReaderToContentHandler(XMLStreamReader staxCore, ContentHandler saxCore, boolean eagerQuit, boolean fragment, String[] inscopeNamespaces) Construct a new StAX to SAX adapter that will convert a StAX event stream into a SAX event stream.
| |
| bridge | back to summary |
|---|---|
| public void bridge() throws XMLStreamException | |
| fixNull | back to summary |
|---|---|
| private static String fixNull(String s) | |
| getAttributes | back to summary |
|---|---|
| private Attributes getAttributes() Get the attributes associated with the given START_ELEMENT or ATTRIBUTE StAXevent.
| |
| handleAttribute | back to summary |
|---|---|
| private void handleAttribute() | |
| handleCDATA | back to summary |
|---|---|
| private void handleCDATA() | |
| handleCharacters | back to summary |
|---|---|
| private void handleCharacters() throws XMLStreamException | |
| handleComment | back to summary |
|---|---|
| private void handleComment() | |
| handleDTD | back to summary |
|---|---|
| private void handleDTD() | |
| handleEndDocument | back to summary |
|---|---|
| private void handleEndDocument() throws SAXException | |
| handleEndElement | back to summary |
|---|---|
| private void handleEndElement() throws XMLStreamException | |
| handleEntityDecl | back to summary |
|---|---|
| private void handleEntityDecl() | |
| handleEntityReference | back to summary |
|---|---|
| private void handleEntityReference() | |
| handleNamespace | back to summary |
|---|---|
| private void handleNamespace() | |
| handleNotationDecl | back to summary |
|---|---|
| private void handleNotationDecl() | |
| handlePI | back to summary |
|---|---|
| private void handlePI() throws XMLStreamException | |
| handleSpace | back to summary |
|---|---|
| private void handleSpace() | |
| handleStartDocument | back to summary |
|---|---|
| private void handleStartDocument() throws SAXException | |
| handleStartElement | back to summary |
|---|---|
| private void handleStartElement() throws XMLStreamException | |