XMLStreamReader and
feeds events to XmlVisitor.Todo
Finding the optimized FI implementations is a bit hacky and not very extensible. Can we use the service provider mechanism in general for concrete implementations of StAXConnector.
| Modifier and Type | Field and Description |
|---|---|
| private final Attributes | attributes
Proxy of |
| protected final StringBuilder | buffer
SAX may fire consecutive characters event, but we don't allow it. |
| private static final Constructor | |
| private static final Class | FI_STAX_READER_CLASS
Reference to FI's StAXReader class, if FI can be loaded. |
| private static final Constructor | |
| private static final Class | |
| private final XMLStreamReader | |
| protected boolean | textReported
Set to true if the text() event is reported, and therefore the following text() event should be suppressed. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | bridge()
Implements abstract org.
|
| private static boolean | |
| public static StAXConnector | |
| private static boolean | |
| protected Location | getCurrentLocation()
Implements abstract org. Gets the |
| protected String | getCurrentQName()
Implements abstract org. Gets the QName of the current element. |
| protected void | |
| private void | |
| private void | |
| private static Constructor | |
| private static Class | |
| private static Constructor | |
| private static Class | |
| private void |
| attributes | back to summary |
|---|---|
| private final Attributes attributes Proxy of | |
| buffer | back to summary |
|---|---|
| protected final StringBuilder buffer SAX may fire consecutive characters event, but we don't allow it. so use this buffer to perform buffering. | |
| FI_CONNECTOR_CTOR | back to summary |
|---|---|
| private static final Constructor<? extends StAXConnector> FI_CONNECTOR_CTOR | |
| FI_STAX_READER_CLASS | back to summary |
|---|---|
| private static final Class<T> FI_STAX_READER_CLASS Reference to FI's StAXReader class, if FI can be loaded. | |
| STAX_EX_CONNECTOR_CTOR | back to summary |
|---|---|
| private static final Constructor<? extends StAXConnector> STAX_EX_CONNECTOR_CTOR | |
| STAX_EX_READER_CLASS | back to summary |
|---|---|
| private static final Class<T> STAX_EX_READER_CLASS | |
| staxStreamReader | back to summary |
|---|---|
| private final XMLStreamReader staxStreamReader | |
| textReported | back to summary |
|---|---|
| protected boolean textReported Set to true if the text() event is reported, and therefore the following text() event should be suppressed. | |
| StAXStreamConnector | back to summary |
|---|---|
| protected StAXStreamConnector(XMLStreamReader staxStreamReader, XmlVisitor visitor) | |
| bridge | back to summary |
|---|---|
| public void bridge() throws XMLStreamException Implements abstract org.
| |
| checkImplementaionNameOfSjsxp | back to summary |
|---|---|
| private static boolean checkImplementaionNameOfSjsxp(XMLStreamReader reader) | |
| create | back to summary |
|---|---|
| public static StAXConnector create(XMLStreamReader reader, XmlVisitor visitor) Creates a | |
| getBoolProp | back to summary |
|---|---|
| private static boolean getBoolProp(XMLStreamReader r, String n) | |
| getCurrentLocation | back to summary |
|---|---|
| protected Location getCurrentLocation() Implements abstract org. Doc from org. Gets the
| |
| getCurrentQName | back to summary |
|---|---|
| protected String getCurrentQName() Implements abstract org. Doc from org. Gets the QName of the current element.
| |
| handleCharacters | back to summary |
|---|---|
| protected void handleCharacters() throws XMLStreamException, SAXException | |
| handleEndElement | back to summary |
|---|---|
| private void handleEndElement() throws SAXException | |
| handleStartElement | back to summary |
|---|---|
| private void handleStartElement() throws SAXException | |
| initFastInfosetConnectorClass | back to summary |
|---|---|
| private static Constructor | |
| initFIStAXReaderClass | back to summary |
|---|---|
| private static Class | |
| initStAXExConnector | back to summary |
|---|---|
| private static Constructor | |
| initStAXExReader | back to summary |
|---|---|
| private static Class | |
| processText | back to summary |
|---|---|
| private void processText(boolean ignorable) throws SAXException | |