Package | Description |
---|---|
javax.xml.stream |
This package provides the Streaming API for XML (StAX, or JSR 173) subset
defined by JSR 280.
|
Modifier and Type | Method and Description |
---|---|
void |
DTDStreamReader.close()
Terminates DTD processing, skipping all DTD related events up
to
END_DTD . |
void |
XMLStreamWriter.close()
Close this writer and free any resources associated with the
writer.
|
void |
XMLStreamReader.close()
Frees any resources associated with this Reader.
|
abstract XMLStreamReader |
XMLInputFactory.createXMLStreamReader(java.io.InputStream stream)
Create a new XMLStreamReader from a java.io.InputStream
|
abstract XMLStreamReader |
XMLInputFactory.createXMLStreamReader(java.io.InputStream stream,
java.lang.String encoding)
Create a new XMLStreamReader from a java.io.InputStream
|
abstract XMLStreamReader |
XMLInputFactory.createXMLStreamReader(java.io.Reader reader)
Create a new XMLStreamReader from a reader
|
abstract XMLStreamWriter |
XMLOutputFactory.createXMLStreamWriter(java.io.OutputStream stream)
Create a new XMLStreamWriter that writes to a stream
|
abstract XMLStreamWriter |
XMLOutputFactory.createXMLStreamWriter(java.io.OutputStream stream,
java.lang.String encoding)
Create a new XMLStreamWriter that writes to a stream
|
abstract XMLStreamWriter |
XMLOutputFactory.createXMLStreamWriter(java.io.Writer stream)
Create a new XMLStreamWriter that writes to a writer
|
void |
XMLStreamWriter.flush()
Write any cached data to the underlying output mechanism.
|
java.lang.String |
XMLStreamReader.getElementText()
Reads the content of a text-only element, an exception is thrown if this
is not a text-only element.
|
java.lang.String |
XMLStreamWriter.getPrefix(java.lang.String uri)
Gets the prefix the uri is bound to
|
boolean |
DTDStreamReader.hasNext()
Returns
true if there are more parsing events and
false if there are no more events. |
boolean |
XMLStreamReader.hasNext()
Returns
true if there are more parsing events and
false if there are no more events. |
int |
DTDStreamReader.next()
Returns next DTD parsing event.
|
int |
XMLStreamReader.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 |
XMLStreamReader.nextTag()
Skips any white space (isWhiteSpace() returns
true ), COMMENT,
or PROCESSING_INSTRUCTION,
until a START_ELEMENT or END_ELEMENT is reached. |
void |
XMLStreamReader.require(int type,
java.lang.String namespaceURI,
java.lang.String 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.
|
java.lang.Object |
XMLResolver.resolveEntity(java.lang.String publicID,
java.lang.String systemID,
java.lang.String baseURI,
java.lang.String namespace)
Retrieves a resource.
|
void |
XMLStreamWriter.setDefaultNamespace(java.lang.String uri)
Binds a URI to the default namespace
This URI is bound
in the scope of the current START_ELEMENT / END_ELEMENT pair.
|
void |
XMLStreamWriter.setPrefix(java.lang.String prefix,
java.lang.String uri)
Sets the prefix the uri is bound to.
|
void |
XMLStreamWriter.writeAttribute(java.lang.String localName,
java.lang.String value)
Writes an attribute to the output stream without
a prefix.
|
void |
XMLStreamWriter.writeAttribute(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value)
Writes an attribute to the output stream
|
void |
XMLStreamWriter.writeAttribute(java.lang.String prefix,
java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value)
Writes an attribute to the output stream
|
void |
XMLStreamWriter.writeCData(java.lang.String data)
Writes a CData section
|
void |
XMLStreamWriter.writeCharacters(char[] text,
int start,
int len)
Write text to the output
|
void |
XMLStreamWriter.writeCharacters(java.lang.String text)
Write text to the output
|
void |
XMLStreamWriter.writeComment(java.lang.String data)
Writes an xml comment with the data enclosed
|
void |
XMLStreamWriter.writeDefaultNamespace(java.lang.String namespaceURI)
Writes the default namespace to the stream
|
void |
XMLStreamWriter.writeDTD(java.lang.String dtd)
Write a DTD section.
|
void |
XMLStreamWriter.writeEmptyElement(java.lang.String localName)
Writes an empty element tag to the output
|
void |
XMLStreamWriter.writeEmptyElement(java.lang.String namespaceURI,
java.lang.String localName)
Writes an empty element tag to the output
|
void |
XMLStreamWriter.writeEmptyElement(java.lang.String prefix,
java.lang.String localName,
java.lang.String namespaceURI)
Writes an empty element tag to the output
|
void |
XMLStreamWriter.writeEndDocument()
Closes any start tags and writes corresponding end tags.
|
void |
XMLStreamWriter.writeEndElement()
Writes an end tag to the output relying on the internal
state of the writer to determine the prefix and local name
of the event.
|
void |
XMLStreamWriter.writeEntityRef(java.lang.String name)
Writes an entity reference
|
void |
XMLStreamWriter.writeNamespace(java.lang.String prefix,
java.lang.String namespaceURI)
Writes a namespace to the output stream
If the prefix argument to this method is the empty string,
"xmlns", or null this method will delegate to writeDefaultNamespace
|
void |
XMLStreamWriter.writeProcessingInstruction(java.lang.String target)
Writes a processing instruction
|
void |
XMLStreamWriter.writeProcessingInstruction(java.lang.String target,
java.lang.String data)
Writes a processing instruction
|
void |
XMLStreamWriter.writeStartDocument()
Write the XML Declaration.
|
void |
XMLStreamWriter.writeStartDocument(java.lang.String version)
Write the XML Declaration.
|
void |
XMLStreamWriter.writeStartDocument(java.lang.String encoding,
java.lang.String version)
Write the XML Declaration.
|
void |
XMLStreamWriter.writeStartElement(java.lang.String localName)
Writes a start tag to the output.
|
void |
XMLStreamWriter.writeStartElement(java.lang.String namespaceURI,
java.lang.String localName)
Writes a start tag to the output
|
void |
XMLStreamWriter.writeStartElement(java.lang.String prefix,
java.lang.String localName,
java.lang.String namespaceURI)
Writes a start tag to the output
|
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.