Package javax.xml.stream
Interface XMLStreamWriter
public interface XMLStreamWriter
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
flush()
getProperty
(String name) void
void
setNamespaceContext
(NamespaceContext context) void
void
writeAttribute
(String localName, String value) void
writeAttribute
(String namespaceURI, String localName, String value) void
writeAttribute
(String prefix, String namespaceURI, String localName, String value) void
writeCData
(String data) void
writeCharacters
(char[] text, int start, int len) void
writeCharacters
(String text) void
writeComment
(String data) void
writeDefaultNamespace
(String namespaceURI) void
void
writeEmptyElement
(String localName) void
writeEmptyElement
(String namespaceURI, String localName) void
writeEmptyElement
(String prefix, String localName, String namespaceURI) void
void
void
writeEntityRef
(String name) void
writeNamespace
(String prefix, String namespaceURI) void
writeProcessingInstruction
(String target) void
writeProcessingInstruction
(String target, String data) void
void
writeStartDocument
(String version) void
writeStartDocument
(String encoding, String version) void
writeStartElement
(String localName) void
writeStartElement
(String namespaceURI, String localName) void
writeStartElement
(String prefix, String localName, String namespaceURI)
-
Method Details
-
close
- Throws:
XMLStreamException
-
flush
- Throws:
XMLStreamException
-
getNamespaceContext
NamespaceContext getNamespaceContext() -
getPrefix
- Throws:
XMLStreamException
-
getProperty
- Throws:
IllegalArgumentException
-
setDefaultNamespace
- Throws:
XMLStreamException
-
setNamespaceContext
- Throws:
XMLStreamException
-
setPrefix
- Throws:
XMLStreamException
-
writeAttribute
- Throws:
XMLStreamException
-
writeAttribute
- Throws:
XMLStreamException
-
writeAttribute
void writeAttribute(String prefix, String namespaceURI, String localName, String value) throws XMLStreamException - Throws:
XMLStreamException
-
writeCData
- Throws:
XMLStreamException
-
writeCharacters
- Throws:
XMLStreamException
-
writeCharacters
- Throws:
XMLStreamException
-
writeComment
- Throws:
XMLStreamException
-
writeDefaultNamespace
- Throws:
XMLStreamException
-
writeDTD
- Throws:
XMLStreamException
-
writeEmptyElement
- Throws:
XMLStreamException
-
writeEmptyElement
- Throws:
XMLStreamException
-
writeEmptyElement
void writeEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException - Throws:
XMLStreamException
-
writeEndDocument
- Throws:
XMLStreamException
-
writeEndElement
- Throws:
XMLStreamException
-
writeEntityRef
- Throws:
XMLStreamException
-
writeNamespace
- Throws:
XMLStreamException
-
writeProcessingInstruction
- Throws:
XMLStreamException
-
writeProcessingInstruction
- Throws:
XMLStreamException
-
writeStartDocument
- Throws:
XMLStreamException
-
writeStartDocument
- Throws:
XMLStreamException
-
writeStartDocument
- Throws:
XMLStreamException
-
writeStartElement
- Throws:
XMLStreamException
-
writeStartElement
- Throws:
XMLStreamException
-
writeStartElement
void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException - Throws:
XMLStreamException
-