Interface XMLStreamWriter
public interface XMLStreamWriter
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()getProperty(String name) voidvoidsetNamespaceContext(NamespaceContext context) voidvoidwriteAttribute(String localName, String value) voidwriteAttribute(String namespaceURI, String localName, String value) voidwriteAttribute(String prefix, String namespaceURI, String localName, String value) voidwriteCData(String data) voidwriteCharacters(char[] text, int start, int len) voidwriteCharacters(String text) voidwriteComment(String data) voidwriteDefaultNamespace(String namespaceURI) voidvoidwriteEmptyElement(String localName) voidwriteEmptyElement(String namespaceURI, String localName) voidwriteEmptyElement(String prefix, String localName, String namespaceURI) voidvoidvoidwriteEntityRef(String name) voidwriteNamespace(String prefix, String namespaceURI) voidwriteProcessingInstruction(String target) voidwriteProcessingInstruction(String target, String data) voidvoidwriteStartDocument(String version) voidwriteStartDocument(String encoding, String version) voidwriteStartElement(String localName) voidwriteStartElement(String namespaceURI, String localName) voidwriteStartElement(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
-