javax.xml.stream.util
4 classes of the module java.xml.
Load them with:
using {
"javax.xml.stream.util"
}
EventReaderDelegate#
class · extends Object · javax.xml.stream.util.EventReaderDelegate
Implements: XMLEventReader
Constructors
new EventReaderDelegate() |
new EventReaderDelegate(XMLEventReader reader) |
Ring: new EventReaderDelegate(args) uses the constructor with the fewest parameters (at least one); new EventReaderDelegate makes the object with the constructor without parameters; the others: (new EventReaderDelegate).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@next | @next() | Object next() |
close | close() | void close() |
forEachRemaining | forEachRemaining(action) | void forEachRemaining(Consumer action) |
getElementText | getElementText() | String getElementText() |
getParent | getParent() | XMLEventReader getParent() |
getProperty | getProperty(name) | Object getProperty(String name) |
hasNext | hasNext() | boolean hasNext() |
nextEvent | nextEvent() | XMLEvent nextEvent() |
nextTag | nextTag() | XMLEvent nextTag() |
peek | peek() | XMLEvent peek() |
remove | remove() | void remove() |
setParent | setParent(reader) | void setParent(XMLEventReader reader) |
The methods and fields of Object are inherited.
StreamReaderDelegate#
class · extends Object · javax.xml.stream.util.StreamReaderDelegate
Implements: XMLStreamReader
Constructors
new StreamReaderDelegate() |
new StreamReaderDelegate(XMLStreamReader reader) |
Ring: new StreamReaderDelegate(args) uses the constructor with the fewest parameters (at least one); new StreamReaderDelegate makes the object with the constructor without parameters; the others: (new StreamReaderDelegate).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
START_ELEMENT | int | constant · static | o.START_ELEMENT |
END_ELEMENT | int | constant · static | o.END_ELEMENT |
PROCESSING_INSTRUCTION | int | constant · static | o.PROCESSING_INSTRUCTION |
CHARACTERS | int | constant · static | o.CHARACTERS |
COMMENT | int | constant · static | o.COMMENT |
SPACE | int | constant · static | o.SPACE |
START_DOCUMENT | int | constant · static | o.START_DOCUMENT |
END_DOCUMENT | int | constant · static | o.END_DOCUMENT |
ENTITY_REFERENCE | int | constant · static | o.ENTITY_REFERENCE |
ATTRIBUTE | int | constant · static | o.ATTRIBUTE |
DTD | int | constant · static | o.DTD |
CDATA | int | constant · static | o.CDATA |
NAMESPACE | int | constant · static | o.NAMESPACE |
NOTATION_DECLARATION | int | constant · static | o.NOTATION_DECLARATION |
ENTITY_DECLARATION | int | constant · static | o.ENTITY_DECLARATION |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@getNamespaceURI | @getNamespaceURI(index) | String getNamespaceURI(int index)String getNamespaceURI(String prefix) |
@getTextCharacters | @getTextCharacters([sourceStart,target,targetStart,length])@getTextCharacters([ :sourceStart = v, :target = v, :targetStart = v, :length = v ]) | int getTextCharacters(int sourceStart, char[] target, int targetStart, int length) |
@next | @next() | int next() |
close | close() | void close() |
getAttributeCount | getAttributeCount() | int getAttributeCount() |
getAttributeLocalName | getAttributeLocalName(index) | String getAttributeLocalName(int index) |
getAttributeName | getAttributeName(index) | QName getAttributeName(int index) |
getAttributeNamespace | getAttributeNamespace(index) | String getAttributeNamespace(int index) |
getAttributePrefix | getAttributePrefix(index) | String getAttributePrefix(int index) |
getAttributeType | getAttributeType(index) | String getAttributeType(int index) |
getAttributeValue | getAttributeValue(index)getAttributeValue([namespaceUri,localName])getAttributeValue([ :namespaceUri = v, :localName = v ]) | String getAttributeValue(int index)String getAttributeValue(String namespaceUri, String localName) |
getCharacterEncodingScheme | getCharacterEncodingScheme() | String getCharacterEncodingScheme() |
getElementText | getElementText() | String getElementText() |
getEncoding | getEncoding() | String getEncoding() |
getEventType | getEventType() | int getEventType() |
getLocalName | getLocalName() | String getLocalName() |
getLocation | getLocation() | Location getLocation() |
getName | getName() | QName getName() |
getNamespaceContext | getNamespaceContext() | NamespaceContext getNamespaceContext() |
getNamespaceCount | getNamespaceCount() | int getNamespaceCount() |
getNamespacePrefix | getNamespacePrefix(index) | String getNamespacePrefix(int index) |
getNamespaceURI | getNamespaceURI() | String getNamespaceURI() |
getParent | getParent() | XMLStreamReader getParent() |
getPIData | getPIData() | String getPIData() |
getPITarget | getPITarget() | String getPITarget() |
getPrefix | getPrefix() | String getPrefix() |
getProperty | getProperty(name) | Object getProperty(String name) |
getText | getText() | String getText() |
getTextCharacters | getTextCharacters() | char[] getTextCharacters() |
getTextLength | getTextLength() | int getTextLength() |
getTextStart | getTextStart() | int getTextStart() |
getVersion | getVersion() | String getVersion() |
hasName | hasName() | boolean hasName() |
hasNext | hasNext() | boolean hasNext() |
hasText | hasText() | boolean hasText() |
isAttributeSpecified | isAttributeSpecified(index) | boolean isAttributeSpecified(int index) |
isCharacters | isCharacters() | boolean isCharacters() |
isEndElement | isEndElement() | boolean isEndElement() |
isStandalone | isStandalone() | boolean isStandalone() |
isStartElement | isStartElement() | boolean isStartElement() |
isWhiteSpace | isWhiteSpace() | boolean isWhiteSpace() |
nextTag | nextTag() | int nextTag() |
require | require(type,namespaceURI,localName) | void require(int type, String namespaceURI, String localName) |
setParent | setParent(reader) | void setParent(XMLStreamReader reader) |
standaloneSet | standaloneSet() | boolean standaloneSet() |
The methods and fields of Object are inherited.
XMLEventAllocator#
interface · javax.xml.stream.util.XMLEventAllocator
Methods
| Method | Ring call | Java overloads |
|---|---|---|
allocate | allocate(reader)allocate([reader,consumer])allocate([ :reader = v, :consumer = v ]) | XMLEvent allocate(XMLStreamReader reader)void allocate(XMLStreamReader reader, XMLEventConsumer consumer) |
newInstance | newInstance() | XMLEventAllocator newInstance() |
XMLEventConsumer#
interface · javax.xml.stream.util.XMLEventConsumer
Methods
| Method | Ring call | Java overloads |
|---|---|---|
add | add(event) | void add(XMLEvent event) |