public class NodeReaderForStAX extends NodeReader
NodeReader.NodeListenerCDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, PROCESSING_INSTRUCTION, START_DOCUMENT, START_ELEMENT| Constructor and Description | 
|---|
NodeReaderForStAX(java.io.InputStream is, java.lang.String systemId)  | 
NodeReaderForStAX(javax.xml.transform.Source is)  | 
NodeReaderForStAX(javax.xml.stream.XMLStreamReader streamReader)  | 
| Modifier and Type | Method and Description | 
|---|---|
java.util.Iterator | 
getAttributes()
Returns all the namespaces and attributes on this START_ELEMENT. 
 | 
int | 
getEventType()
Returns an integer code that indicates the type of the event the cursor is pointing to START_ELEMENT END_ELEMENT PROCESSING_INSTRUCTION CHARACTERS COMMENT START_DOCUMENT END_DOCUMENT 
 | 
java.lang.String | 
getLocalName()
Returns the (local) name of the current event. 
 | 
java.lang.String | 
getNamespaceURI()
If the current event is a START_ELEMENT or END_ELEMENT this method returns the URI of the prefix or the default namespace 
 | 
org.w3c.dom.Node | 
getNode()
Returns the current node. 
 | 
java.lang.String | 
getPIData()
Get the data section of a processing instruction 
 | 
java.lang.String | 
getPITarget()
Get the target of a processing instruction 
 | 
java.lang.String | 
getPrefix()
Returns the prefix of the current event or null if the event does not have a prefix 
 | 
char[] | 
getText()
Returns the current value of the parse event as a character array, this returns the string value of a CHARACTERS event, returns the value of a COMMENT, 
 | 
int | 
getTextLength()  | 
int | 
getTextStart()  | 
boolean | 
hasNext()
Returns true if there are more parsing events and false if there are no more events. 
 | 
boolean | 
isElementIncluded()
For special case when some of an element's attributes are in the node set but the element itself is not 
 | 
int | 
next()
Get next parsing event. 
 | 
addListener, fireConsumeNode, getAncestorXmlAttributes, getNamespaces, getNamespacesForMissingAncestors, getSortedAttributes, isElementAnOrphan, isElementInheritingNamespaces, isUnnecessaryEmptyDefaultNsRequired, removeListener
public NodeReaderForStAX(java.io.InputStream is,
                 java.lang.String systemId)
                  throws NodeReaderException
NodeReaderException
public NodeReaderForStAX(javax.xml.transform.Source is)
                  throws NodeReaderException
NodeReaderExceptionpublic NodeReaderForStAX(javax.xml.stream.XMLStreamReader streamReader)
public final boolean hasNext()
                      throws NodeReaderException
NodeReaderhasNext in class NodeReaderNodeReaderException
public final int next()
               throws NodeReaderException
NodeReadernext in class NodeReaderNodeReaderExceptionpublic final int getEventType()
NodeReadergetEventType in class NodeReaderpublic final java.lang.String getLocalName()
NodeReadergetLocalName in class NodeReaderpublic final java.lang.String getNamespaceURI()
NodeReadergetNamespaceURI in class NodeReaderpublic final java.lang.String getPrefix()
NodeReadergetPrefix in class NodeReaderpublic final char[] getText()
NodeReadergetText in class NodeReaderpublic final int getTextStart()
getTextStart in class NodeReaderpublic final int getTextLength()
getTextLength in class NodeReaderpublic final java.lang.String getPIData()
NodeReadergetPIData in class NodeReaderpublic final java.lang.String getPITarget()
NodeReadergetPITarget in class NodeReaderpublic final boolean isElementIncluded()
NodeReaderisElementIncluded in class NodeReaderpublic final org.w3c.dom.Node getNode()
NodeReadergetNode in class NodeReaderpublic final java.util.Iterator getAttributes()
NodeReaderAll NodeReaders must implement this. Additionally a node reader may implement the NodeReader.getNamespaces() and NodeReader.getSortedAttributes() methods to return the namespaces and attributes separately.
getAttributes in class NodeReader