StreamReaderDelegate (Java Platform SE 8 ) (original) (raw)
Modifier and Type
Method
Description
void
[close](../../../../javax/xml/stream/util/StreamReaderDelegate.html#close--)()
Frees any resources associated with this Reader.
int
[getAttributeCount](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getAttributeCount--)()
Returns the count of attributes on this START_ELEMENT, this method is only valid on a START_ELEMENT or ATTRIBUTE.
[String](../../../../java/lang/String.html "class in java.lang")
[getAttributeLocalName](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getAttributeLocalName-int-)(int index)
Returns the localName of the attribute at the provided index
[QName](../../../../javax/xml/namespace/QName.html "class in javax.xml.namespace")
[getAttributeName](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getAttributeName-int-)(int index)
Returns the qname of the attribute at the provided index
[String](../../../../java/lang/String.html "class in java.lang")
[getAttributeNamespace](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getAttributeNamespace-int-)(int index)
Returns the namespace of the attribute at the provided index
[String](../../../../java/lang/String.html "class in java.lang")
[getAttributePrefix](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getAttributePrefix-int-)(int index)
Returns the prefix of this attribute at the provided index
[String](../../../../java/lang/String.html "class in java.lang")
[getAttributeType](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getAttributeType-int-)(int index)
Returns the XML type of the attribute at the provided index
[String](../../../../java/lang/String.html "class in java.lang")
[getAttributeValue](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getAttributeValue-int-)(int index)
Returns the value of the attribute at the index
[String](../../../../java/lang/String.html "class in java.lang")
[getAttributeValue](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getAttributeValue-java.lang.String-java.lang.String-)([String](../../../../java/lang/String.html "class in java.lang") namespaceUri,[String](../../../../java/lang/String.html "class in java.lang") localName)
Returns the normalized attribute value of the attribute with the namespace and localName If the namespaceURI is null the namespace is not checked for equality
[String](../../../../java/lang/String.html "class in java.lang")
[getCharacterEncodingScheme](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getCharacterEncodingScheme--)()
Returns the character encoding declared on the xml declaration Returns null if none was declared
[String](../../../../java/lang/String.html "class in java.lang")
[getElementText](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getElementText--)()
Reads the content of a text-only element, an exception is thrown if this is not a text-only element.
[String](../../../../java/lang/String.html "class in java.lang")
[getEncoding](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getEncoding--)()
Return input encoding if known or null if unknown.
int
[getEventType](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getEventType--)()
Returns an integer code that indicates the type of the event the cursor is pointing to.
[String](../../../../java/lang/String.html "class in java.lang")
[getLocalName](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getLocalName--)()
Returns the (local) name of the current event.
[Location](../../../../javax/xml/stream/Location.html "interface in javax.xml.stream")
[getLocation](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getLocation--)()
Return the current location of the processor.
[QName](../../../../javax/xml/namespace/QName.html "class in javax.xml.namespace")
[getName](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getName--)()
Returns a QName for the current START_ELEMENT or END_ELEMENT event
[NamespaceContext](../../../../javax/xml/namespace/NamespaceContext.html "interface in javax.xml.namespace")
[getNamespaceContext](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getNamespaceContext--)()
Returns a read only namespace context for the current position.
int
[getNamespaceCount](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getNamespaceCount--)()
Returns the count of namespaces declared on this START_ELEMENT or END_ELEMENT, this method is only valid on a START_ELEMENT, END_ELEMENT or NAMESPACE.
[String](../../../../java/lang/String.html "class in java.lang")
[getNamespacePrefix](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getNamespacePrefix-int-)(int index)
Returns the prefix for the namespace declared at the index.
[String](../../../../java/lang/String.html "class in java.lang")
[getNamespaceURI](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getNamespaceURI--)()
If the current event is a START_ELEMENT or END_ELEMENT this method returns the URI of the prefix or the default namespace.
[String](../../../../java/lang/String.html "class in java.lang")
[getNamespaceURI](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getNamespaceURI-int-)(int index)
Returns the uri for the namespace declared at the index.
[String](../../../../java/lang/String.html "class in java.lang")
[getNamespaceURI](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getNamespaceURI-java.lang.String-)([String](../../../../java/lang/String.html "class in java.lang") prefix)
Return the uri for the given prefix.
[XMLStreamReader](../../../../javax/xml/stream/XMLStreamReader.html "interface in javax.xml.stream")
[getParent](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getParent--)()
Get the parent of this instance.
[String](../../../../java/lang/String.html "class in java.lang")
[getPIData](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getPIData--)()
Get the data section of a processing instruction
[String](../../../../java/lang/String.html "class in java.lang")
[getPITarget](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getPITarget--)()
Get the target of a processing instruction
[String](../../../../java/lang/String.html "class in java.lang")
[getPrefix](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getPrefix--)()
Returns the prefix of the current event or null if the event does not have a prefix
[Object](../../../../java/lang/Object.html "class in java.lang")
[getProperty](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getProperty-java.lang.String-)([String](../../../../java/lang/String.html "class in java.lang") name)
Get the value of a feature/property from the underlying implementation
[String](../../../../java/lang/String.html "class in java.lang")
[getText](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getText--)()
Returns the current value of the parse event as a string, this returns the string value of a CHARACTERS event, returns the value of a COMMENT, the replacement value for an ENTITY_REFERENCE, the string value of a CDATA section, the string value for a SPACE event, or the String value of the internal subset of the DTD.
char[]
[getTextCharacters](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getTextCharacters--)()
Returns an array which contains the characters from this event.
int
[getTextCharacters](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getTextCharacters-int-char:A-int-int-)(int sourceStart, char[] target, int targetStart, int length)
Gets the the text associated with a CHARACTERS, SPACE or CDATA event.
int
[getTextLength](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getTextLength--)()
Returns the length of the sequence of characters for this Text event within the text character array.
int
[getTextStart](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getTextStart--)()
Returns the offset into the text character array where the first character (of this text event) is stored.
[String](../../../../java/lang/String.html "class in java.lang")
[getVersion](../../../../javax/xml/stream/util/StreamReaderDelegate.html#getVersion--)()
Get the xml version declared on the xml declaration Returns null if none was declared
boolean
[hasName](../../../../javax/xml/stream/util/StreamReaderDelegate.html#hasName--)()
returns true if the current event has a name (is a START_ELEMENT or END_ELEMENT) returns false otherwise
boolean
[hasNext](../../../../javax/xml/stream/util/StreamReaderDelegate.html#hasNext--)()
Returns true if there are more parsing events and false if there are no more events.
boolean
[hasText](../../../../javax/xml/stream/util/StreamReaderDelegate.html#hasText--)()
Return true if the current event has text, false otherwise The following events have text: CHARACTERS,DTD ,ENTITY_REFERENCE, COMMENT, SPACE
boolean
[isAttributeSpecified](../../../../javax/xml/stream/util/StreamReaderDelegate.html#isAttributeSpecified-int-)(int index)
Returns a boolean which indicates if this attribute was created by default
boolean
[isCharacters](../../../../javax/xml/stream/util/StreamReaderDelegate.html#isCharacters--)()
Returns true if the cursor points to a character data event
boolean
[isEndElement](../../../../javax/xml/stream/util/StreamReaderDelegate.html#isEndElement--)()
Returns true if the cursor points to an end tag (otherwise false)
boolean
[isStandalone](../../../../javax/xml/stream/util/StreamReaderDelegate.html#isStandalone--)()
Get the standalone declaration from the xml declaration
boolean
[isStartElement](../../../../javax/xml/stream/util/StreamReaderDelegate.html#isStartElement--)()
Returns true if the cursor points to a start tag (otherwise false)
boolean
[isWhiteSpace](../../../../javax/xml/stream/util/StreamReaderDelegate.html#isWhiteSpace--)()
Returns true if the cursor points to a character data event that consists of all whitespace
int
[next](../../../../javax/xml/stream/util/StreamReaderDelegate.html#next--)()
Get next parsing event - a processor may return all contiguous character data in a single chunk, or it may split it into several chunks.
int
[nextTag](../../../../javax/xml/stream/util/StreamReaderDelegate.html#nextTag--)()
Skips any white space (isWhiteSpace() returns true), COMMENT, or PROCESSING_INSTRUCTION, until a START_ELEMENT or END_ELEMENT is reached.
void
[require](../../../../javax/xml/stream/util/StreamReaderDelegate.html#require-int-java.lang.String-java.lang.String-)(int type,[String](../../../../java/lang/String.html "class in java.lang") namespaceURI,[String](../../../../java/lang/String.html "class in java.lang") localName)
Test if the current event is of the given type and if the namespace and name match the current namespace and name of the current event.
void
[setParent](../../../../javax/xml/stream/util/StreamReaderDelegate.html#setParent-javax.xml.stream.XMLStreamReader-)([XMLStreamReader](../../../../javax/xml/stream/XMLStreamReader.html "interface in javax.xml.stream") reader)
Set the parent of this instance.
boolean
[standaloneSet](../../../../javax/xml/stream/util/StreamReaderDelegate.html#standaloneSet--)()
Checks if standalone was set in the document