|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.bind.v2.runtime.unmarshaller.StAXConnector
com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector
class StAXStreamConnector
Reads XML from StAX 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.
| Field Summary | |
|---|---|
protected java.lang.StringBuilder |
buffer
SAX may fire consecutive characters event, but we don't allow it. |
protected boolean |
textReported
Set to true if the text() event is reported, and therefore the following text() event should be suppressed. |
| Fields inherited from class com.sun.xml.bind.v2.runtime.unmarshaller.StAXConnector |
|---|
context, predictor, tagName, visitor |
| Constructor Summary | |
|---|---|
protected |
StAXStreamConnector(javax.xml.stream.XMLStreamReader staxStreamReader,
XmlVisitor visitor)
|
| Method Summary | |
|---|---|
void |
bridge()
|
static StAXConnector |
create(javax.xml.stream.XMLStreamReader reader,
XmlVisitor visitor)
Creates a StAXConnector from XMLStreamReader. |
static java.lang.ClassLoader |
getClassLoader()
|
protected javax.xml.stream.Location |
getCurrentLocation()
Gets the Location. |
protected java.lang.String |
getCurrentQName()
Gets the QName of the current element. |
protected void |
handleCharacters()
|
| Methods inherited from class com.sun.xml.bind.v2.runtime.unmarshaller.StAXConnector |
|---|
fixNull, getQName, handleEndDocument, handleStartDocument |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.lang.StringBuilder buffer
protected boolean textReported
| Constructor Detail |
|---|
protected StAXStreamConnector(javax.xml.stream.XMLStreamReader staxStreamReader,
XmlVisitor visitor)
| Method Detail |
|---|
public static StAXConnector create(javax.xml.stream.XMLStreamReader reader,
XmlVisitor visitor)
StAXConnector from XMLStreamReader.
This method checks if the parser is FI parser and acts accordingly.
public void bridge()
throws javax.xml.stream.XMLStreamException
bridge in class StAXConnectorjavax.xml.stream.XMLStreamExceptionprotected javax.xml.stream.Location getCurrentLocation()
StAXConnectorLocation. Used for implementing the line number information.
getCurrentLocation in class StAXConnectorprotected java.lang.String getCurrentQName()
StAXConnector
getCurrentQName in class StAXConnector
protected void handleCharacters()
throws javax.xml.stream.XMLStreamException,
org.xml.sax.SAXException
javax.xml.stream.XMLStreamException
org.xml.sax.SAXExceptionpublic static java.lang.ClassLoader getClassLoader()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||