javax.xml.stream
15 classes of the module java.xml.
Load them with:
using {
"javax.xml.stream"
}
EventFilter#
interface · javax.xml.stream.EventFilter
Methods
| Method | Ring call | Java overloads |
|---|---|---|
accept | accept(event) | boolean accept(XMLEvent event) |
Location#
interface · javax.xml.stream.Location
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getCharacterOffset | getCharacterOffset() | int getCharacterOffset() |
getColumnNumber | getColumnNumber() | int getColumnNumber() |
getLineNumber | getLineNumber() | int getLineNumber() |
getPublicId | getPublicId() | String getPublicId() |
getSystemId | getSystemId() | String getSystemId() |
StreamFactoryConfigurationError#
class · extends Error · javax.xml.stream.FactoryConfigurationError
Constructors
new StreamFactoryConfigurationError() |
new StreamFactoryConfigurationError(String msg) |
new StreamFactoryConfigurationError(Exception e) |
new StreamFactoryConfigurationError(String msg, Exception e) |
new StreamFactoryConfigurationError(Exception e, String msg) |
Ring: new StreamFactoryConfigurationError(args) uses the constructor with the fewest parameters (at least one); new StreamFactoryConfigurationError makes the object with the constructor without parameters; the others: (new StreamFactoryConfigurationError).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getException | getException() | Exception getException() |
The methods and fields of Error are inherited.
StreamFilter#
interface · javax.xml.stream.StreamFilter
Methods
| Method | Ring call | Java overloads |
|---|---|---|
accept | accept(reader) | boolean accept(XMLStreamReader reader) |
XMLEventFactory#
abstract · extends Object · javax.xml.stream.XMLEventFactory
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@createStartDocument | @createStartDocument(encoding)@createStartDocument([encoding,version])@createStartDocument([ :encoding = v, :version = v ])@createStartDocument([encoding,version,standalone])@createStartDocument([ :encoding = v, :version = v, :standalone = v ]) | StartDocument createStartDocument(String encoding)StartDocument createStartDocument(String encoding, String version)StartDocument createStartDocument(String encoding, String version, boolean standalone) |
@newFactory | @newFactory([factoryId,classLoader])@newFactory([ :factoryId = v, :classLoader = v ]) | static XMLEventFactory newFactory(String factoryId, ClassLoader classLoader) |
@newInstance | @newInstance([factoryId,classLoader])@newInstance([ :factoryId = v, :classLoader = v ]) | static XMLEventFactory newInstance(String factoryId, ClassLoader classLoader) |
createAttribute | createAttribute([localName,value])createAttribute([ :localName = v, :value = v ])createAttribute([prefix,namespaceURI,localName,value])createAttribute([ :prefix = v, :namespaceURI = v, :localName = v, :value = v ]) | Attribute createAttribute(String localName, String value)Attribute createAttribute(QName name, String value)Attribute createAttribute(String prefix, String namespaceURI, String localName, String value) |
createCData | createCData(content) | Characters createCData(String content) |
createCharacters | createCharacters(content) | Characters createCharacters(String content) |
createComment | createComment(text) | Comment createComment(String text) |
createDTD | createDTD(dtd) | DTD createDTD(String dtd) |
createEndDocument | createEndDocument() | EndDocument createEndDocument() |
createEndElement | createEndElement([name,namespaces])createEndElement([ :name = v, :namespaces = v ])createEndElement([prefix,namespaceUri,localName])createEndElement([ :prefix = v, :namespaceUri = v, :localName = v ])createEndElement([prefix,namespaceUri,localName,namespaces])createEndElement([ :prefix = v, :namespaceUri = v, :localName = v, :namespaces = v ]) | EndElement createEndElement(QName name, Iterator namespaces)EndElement createEndElement(String prefix, String namespaceUri, String localName)EndElement createEndElement(String prefix, String namespaceUri, String localName, Iterator namespaces) |
createEntityReference | createEntityReference(name,declaration) | EntityReference createEntityReference(String name, EntityDeclaration declaration) |
createIgnorableSpace | createIgnorableSpace(content) | Characters createIgnorableSpace(String content) |
createNamespace | createNamespace(namespaceURI)createNamespace([prefix,namespaceUri])createNamespace([ :prefix = v, :namespaceUri = v ]) | Namespace createNamespace(String namespaceURI)Namespace createNamespace(String prefix, String namespaceUri) |
createProcessingInstruction | createProcessingInstruction(target,data) | ProcessingInstruction createProcessingInstruction(String target, String data) |
createSpace | createSpace(content) | Characters createSpace(String content) |
createStartDocument | createStartDocument() | StartDocument createStartDocument() |
createStartElement | createStartElement([prefix,namespaceUri,localName])createStartElement([ :prefix = v, :namespaceUri = v, :localName = v ])createStartElement([prefix,namespaceUri,localName,attributes,namespaces])createStartElement([ :prefix = v, :namespaceUri = v, :localName = v, :attributes = v, :namespaces = v ])createStartElement([prefix,namespaceUri,localName,attributes,namespaces,context])createStartElement([ :prefix = v, :namespaceUri = v, :localName = v, :attributes = v, :namespaces = v, :context = v ]) | StartElement createStartElement(String prefix, String namespaceUri, String localName)StartElement createStartElement(QName name, Iterator attributes, Iterator namespaces)StartElement createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces)StartElement createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces, NamespaceContext context) |
newDefaultFactory | newDefaultFactory() | static XMLEventFactory newDefaultFactory() |
newFactory | newFactory() | static XMLEventFactory newFactory() |
newInstance | newInstance() | static XMLEventFactory newInstance() |
setLocation | setLocation(location) | void setLocation(Location location) |
The methods and fields of Object are inherited.
XMLEventReader#
interface · javax.xml.stream.XMLEventReader
Extends: Iterator
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() |
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() |
XMLEventWriter#
interface · javax.xml.stream.XMLEventWriter
Extends: XMLEventConsumer
Methods
| Method | Ring call | Java overloads |
|---|---|---|
add | add(reader) | void add(XMLEventReader reader)void add(XMLEvent event) |
close | close() | void close() |
flush | flush() | void flush() |
getNamespaceContext | getNamespaceContext() | NamespaceContext getNamespaceContext() |
getPrefix | getPrefix(uri) | String getPrefix(String uri) |
setDefaultNamespace | setDefaultNamespace(uri) | void setDefaultNamespace(String uri) |
setNamespaceContext | setNamespaceContext(context) | void setNamespaceContext(NamespaceContext context) |
setPrefix | setPrefix(prefix,uri) | void setPrefix(String prefix, String uri) |
XMLInputFactory#
abstract · extends Object · javax.xml.stream.XMLInputFactory
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IS_NAMESPACE_AWARE | String | constant · static | o.IS_NAMESPACE_AWARE |
IS_VALIDATING | String | constant · static | o.IS_VALIDATING |
IS_COALESCING | String | constant · static | o.IS_COALESCING |
IS_REPLACING_ENTITY_REFERENCES | String | constant · static | o.IS_REPLACING_ENTITY_REFERENCES |
IS_SUPPORTING_EXTERNAL_ENTITIES | String | constant · static | o.IS_SUPPORTING_EXTERNAL_ENTITIES |
SUPPORT_DTD | String | constant · static | o.SUPPORT_DTD |
REPORTER | String | constant · static | o.REPORTER |
RESOLVER | String | constant · static | o.RESOLVER |
ALLOCATOR | String | constant · static | o.ALLOCATOR |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@newFactory | @newFactory([factoryId,classLoader])@newFactory([ :factoryId = v, :classLoader = v ]) | static XMLInputFactory newFactory(String factoryId, ClassLoader classLoader) |
@newInstance | @newInstance([factoryId,classLoader])@newInstance([ :factoryId = v, :classLoader = v ]) | static XMLInputFactory newInstance(String factoryId, ClassLoader classLoader) |
createFilteredReader | createFilteredReader(reader,filter) | XMLEventReader createFilteredReader(XMLEventReader reader, EventFilter filter)XMLStreamReader createFilteredReader(XMLStreamReader reader, StreamFilter filter) |
createXMLEventReader | createXMLEventReader(source)createXMLEventReader([stream,encoding])createXMLEventReader([ :stream = v, :encoding = v ]) | XMLEventReader createXMLEventReader(Source source)XMLEventReader createXMLEventReader(InputStream stream)XMLEventReader createXMLEventReader(Reader reader)XMLEventReader createXMLEventReader(XMLStreamReader reader)XMLEventReader createXMLEventReader(InputStream stream, String encoding)XMLEventReader createXMLEventReader(String systemId, InputStream stream)XMLEventReader createXMLEventReader(String systemId, Reader reader) |
createXMLStreamReader | createXMLStreamReader(reader)createXMLStreamReader([stream,encoding])createXMLStreamReader([ :stream = v, :encoding = v ]) | XMLStreamReader createXMLStreamReader(Reader reader)XMLStreamReader createXMLStreamReader(Source source)XMLStreamReader createXMLStreamReader(InputStream stream)XMLStreamReader createXMLStreamReader(InputStream stream, String encoding)XMLStreamReader createXMLStreamReader(String systemId, InputStream stream)XMLStreamReader createXMLStreamReader(String systemId, Reader reader) |
getEventAllocator | getEventAllocator() | XMLEventAllocator getEventAllocator() |
getProperty | getProperty(name) | Object getProperty(String name) |
getXMLReporter | getXMLReporter() | XMLReporter getXMLReporter() |
getXMLResolver | getXMLResolver() | XMLResolver getXMLResolver() |
isPropertySupported | isPropertySupported(name) | boolean isPropertySupported(String name) |
newDefaultFactory | newDefaultFactory() | static XMLInputFactory newDefaultFactory() |
newFactory | newFactory() | static XMLInputFactory newFactory() |
newInstance | newInstance() | static XMLInputFactory newInstance() |
setEventAllocator | setEventAllocator(allocator) | void setEventAllocator(XMLEventAllocator allocator) |
setProperty | setProperty(name,value) | void setProperty(String name, Object value) |
setXMLReporter | setXMLReporter(reporter) | void setXMLReporter(XMLReporter reporter) |
setXMLResolver | setXMLResolver(resolver) | void setXMLResolver(XMLResolver resolver) |
The methods and fields of Object are inherited.
XMLOutputFactory#
abstract · extends Object · javax.xml.stream.XMLOutputFactory
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IS_REPAIRING_NAMESPACES | String | constant · static | o.IS_REPAIRING_NAMESPACES |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@newFactory | @newFactory([factoryId,classLoader])@newFactory([ :factoryId = v, :classLoader = v ]) | static XMLOutputFactory newFactory(String factoryId, ClassLoader classLoader) |
@newInstance | @newInstance([factoryId,classLoader])@newInstance([ :factoryId = v, :classLoader = v ]) | static XMLInputFactory newInstance(String factoryId, ClassLoader classLoader) |
createXMLEventWriter | createXMLEventWriter(stream)createXMLEventWriter([stream,encoding])createXMLEventWriter([ :stream = v, :encoding = v ]) | XMLEventWriter createXMLEventWriter(Writer stream)XMLEventWriter createXMLEventWriter(Result result)XMLEventWriter createXMLEventWriter(OutputStream stream)XMLEventWriter createXMLEventWriter(OutputStream stream, String encoding) |
createXMLStreamWriter | createXMLStreamWriter(result)createXMLStreamWriter([stream,encoding])createXMLStreamWriter([ :stream = v, :encoding = v ]) | XMLStreamWriter createXMLStreamWriter(Result result)XMLStreamWriter createXMLStreamWriter(OutputStream stream)XMLStreamWriter createXMLStreamWriter(Writer stream)XMLStreamWriter createXMLStreamWriter(OutputStream stream, String encoding) |
getProperty | getProperty(name) | Object getProperty(String name) |
isPropertySupported | isPropertySupported(name) | boolean isPropertySupported(String name) |
newDefaultFactory | newDefaultFactory() | static XMLOutputFactory newDefaultFactory() |
newFactory | newFactory() | static XMLOutputFactory newFactory() |
newInstance | newInstance() | static XMLOutputFactory newInstance() |
setProperty | setProperty(name,value) | void setProperty(String name, Object value) |
The methods and fields of Object are inherited.
XMLReporter#
interface · javax.xml.stream.XMLReporter
Methods
| Method | Ring call | Java overloads |
|---|---|---|
report | report(message,errorType,relatedInformation,location) | void report(String message, String errorType, Object relatedInformation, Location location) |
XMLResolver#
interface · javax.xml.stream.XMLResolver
Methods
| Method | Ring call | Java overloads |
|---|---|---|
resolveEntity | resolveEntity(publicID,systemID,baseURI,namespace) | Object resolveEntity(String publicID, String systemID, String baseURI, String namespace) |
XMLStreamConstants#
interface · javax.xml.stream.XMLStreamConstants
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 |
XMLStreamException#
class · extends Exception · javax.xml.stream.XMLStreamException
Constructors
new XMLStreamException() |
new XMLStreamException(String msg) |
new XMLStreamException(Throwable th) |
new XMLStreamException(String msg, Location location) |
new XMLStreamException(String msg, Throwable th) |
new XMLStreamException(String msg, Location location, Throwable th) |
Ring: new XMLStreamException(args) uses the constructor with the fewest parameters (at least one); new XMLStreamException makes the object with the constructor without parameters; the others: (new XMLStreamException).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getLocation | getLocation() | Location getLocation() |
getNestedException | getNestedException() | Throwable getNestedException() |
The methods and fields of Exception are inherited.
XMLStreamReader#
interface · javax.xml.stream.XMLStreamReader
Extends: XMLStreamConstants
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(prefix) | String getNamespaceURI(String prefix)String getNamespaceURI(int index) |
@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() |
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) |
standaloneSet | standaloneSet() | boolean standaloneSet() |
XMLStreamWriter#
interface · javax.xml.stream.XMLStreamWriter
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@writeStartDocument | @writeStartDocument(version)@writeStartDocument([encoding,version])@writeStartDocument([ :encoding = v, :version = v ]) | void writeStartDocument(String version)void writeStartDocument(String encoding, String version) |
close | close() | void close() |
flush | flush() | void flush() |
getNamespaceContext | getNamespaceContext() | NamespaceContext getNamespaceContext() |
getPrefix | getPrefix(uri) | String getPrefix(String uri) |
getProperty | getProperty(name) | Object getProperty(String name) |
setDefaultNamespace | setDefaultNamespace(uri) | void setDefaultNamespace(String uri) |
setNamespaceContext | setNamespaceContext(context) | void setNamespaceContext(NamespaceContext context) |
setPrefix | setPrefix(prefix,uri) | void setPrefix(String prefix, String uri) |
writeAttribute | writeAttribute([localName,value])writeAttribute([ :localName = v, :value = v ])writeAttribute([namespaceURI,localName,value])writeAttribute([ :namespaceURI = v, :localName = v, :value = v ])writeAttribute([prefix,namespaceURI,localName,value])writeAttribute([ :prefix = v, :namespaceURI = v, :localName = v, :value = v ]) | void writeAttribute(String localName, String value)void writeAttribute(String namespaceURI, String localName, String value)void writeAttribute(String prefix, String namespaceURI, String localName, String value) |
writeCData | writeCData(data) | void writeCData(String data) |
writeCharacters | writeCharacters(text)writeCharacters([text,start,len])writeCharacters([ :text = v, :start = v, :len = v ]) | void writeCharacters(String text)void writeCharacters(char[] text, int start, int len) |
writeComment | writeComment(data) | void writeComment(String data) |
writeDefaultNamespace | writeDefaultNamespace(namespaceURI) | void writeDefaultNamespace(String namespaceURI) |
writeDTD | writeDTD(dtd) | void writeDTD(String dtd) |
writeEmptyElement | writeEmptyElement(localName)writeEmptyElement([namespaceURI,localName])writeEmptyElement([ :namespaceURI = v, :localName = v ])writeEmptyElement([prefix,localName,namespaceURI])writeEmptyElement([ :prefix = v, :localName = v, :namespaceURI = v ]) | void writeEmptyElement(String localName)void writeEmptyElement(String namespaceURI, String localName)void writeEmptyElement(String prefix, String localName, String namespaceURI) |
writeEndDocument | writeEndDocument() | void writeEndDocument() |
writeEndElement | writeEndElement() | void writeEndElement() |
writeEntityRef | writeEntityRef(name) | void writeEntityRef(String name) |
writeNamespace | writeNamespace(prefix,namespaceURI) | void writeNamespace(String prefix, String namespaceURI) |
writeProcessingInstruction | writeProcessingInstruction(target)writeProcessingInstruction([target,data])writeProcessingInstruction([ :target = v, :data = v ]) | void writeProcessingInstruction(String target)void writeProcessingInstruction(String target, String data) |
writeStartDocument | writeStartDocument() | void writeStartDocument() |
writeStartElement | writeStartElement(localName)writeStartElement([namespaceURI,localName])writeStartElement([ :namespaceURI = v, :localName = v ])writeStartElement([prefix,localName,namespaceURI])writeStartElement([ :prefix = v, :localName = v, :namespaceURI = v ]) | void writeStartElement(String localName)void writeStartElement(String namespaceURI, String localName)void writeStartElement(String prefix, String localName, String namespaceURI) |