XMLStreamReader implementation that reads the XML document
out of a JDOM Document. This class is marked as abstract even though it is
a full implementation of the XMLReader. This class can be overridden if needed.
If you extend this class, you will need to also extend AbstractStAXStreamReaderProcessor
and supply an instance of that customised class to the StAXStreamReader class.
The reader reads XML Events by walking the JDOM tree, reporting all XML stream events as it encounters them in the JDOM.
This class is the inverse of the class StAXStreamOutputter in the sense that
this class is read from (it's an XMLStreamReader implementation) by interpreting a JDOM
Document whereas the StAXStreamOutputter interprets a JDOM Document and writes to
a user-supplied XMLStreamWriter. It is the difference between a 'pull' concept and a
'push' concept.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| private String | |
| private String | |
| private String | |
| private String | |
| private int | |
| private int | |
| private Document | |
| private Element[] | |
| private final FormatStack | |
| private final NamespaceStack | |
| private Walker[] |
| Access | Constructor and Description |
|---|---|
| public | AbstractStAXStreamReader(Document
the document to output. document, Format The output format to use. format)Create a new AbstractStAXStreamReader that outputs a JDOM Document as an XMLStream. |
| public | AbstractStAXStreamReader(Document
the document to output. document)Create a new AbstractStAXStreamReader that outputs a JDOM Document as an XMLStream using the Format.getRawFormat() format. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements javax. |
| public int | getAttributeCount()
Implements javax. |
| public String | getAttributeLocalName(int
the position of the attribute index)Implements javax. |
| public QName | getAttributeName(int
the position of the attribute index)Implements javax. |
| public String | getAttributeNamespace(int
the position of the attribute index)Implements javax. |
| public String | getAttributePrefix(int
the position of the attribute index)Implements javax. |
| public String | getAttributeType(int
the position of the attribute index)Implements javax. |
| public String | getAttributeValue(String
the namespace of the attribute namespaceURI, String the local name of the attribute, cannot be null localName)Implements javax. |
| public String | getAttributeValue(int
the position of the attribute index)Implements javax. |
| public String | getCharacterEncodingScheme()
Implements javax. |
| public String | getElementText()
Implements javax. |
| public String | getEncoding()
Implements javax. |
| public int | getEventType()
Implements javax. |
| public String | getLocalName()
Implements javax. |
| public Location | getLocation()
Implements javax. |
| public QName | getName()
Implements javax. |
| private final Namespace | |
| public NamespaceContext | getNamespaceContext()
Implements javax. |
| public int | getNamespaceCount()
Implements javax. |
| public String | getNamespacePrefix(int
the position of the namespace declaration index)Implements javax. |
| public String | getNamespaceURI()
Implements javax. |
| public String | getNamespaceURI(String
The prefix to lookup, may not be null prefix)Implements javax. |
| public String | getNamespaceURI(int
the position of the namespace declaration index)Implements javax. |
| public String | getPIData()
Implements javax. |
| public String | getPITarget()
Implements javax. |
| public String | getPrefix()
Implements javax. |
| public Object | getProperty(final String
The name of the property, may not be null name)Implements javax. |
| public String | getText()
Implements javax. |
| public char[] | getTextCharacters()
Implements javax. |
| public int | getTextCharacters(int
the index of the first character in the source array to copy sourceStart, char[] the destination array target, int the start offset in the target array targetStart, int the number of characters to copy length)Implements javax. |
| public int | getTextLength()
Implements javax. |
| public int | getTextStart()
Implements javax. |
| public String | getVersion()
Implements javax. |
| public boolean | hasName()
Implements javax. |
| public boolean | hasNext()
Implements javax. |
| public boolean | hasText()
Implements javax. |
| public boolean | isAttributeSpecified(int
the position of the attribute index)Implements javax. |
| public boolean | isCharacters()
Implements javax. |
| public boolean | isEndElement()
Implements javax. |
| public boolean | isStandalone()
Implements javax. |
| public boolean | isStartElement()
Implements javax. |
| public boolean | isWhiteSpace()
Implements javax. |
| public int | next()
Implements javax. |
| public int | nextTag()
Implements javax. |
| public void | require(int
the event type type, String the uri of the event, may be null namespaceURI, String the localName of the event, may be null localName)Implements javax. |
| public boolean | standaloneSet()
Implements javax. |