public class XMLStreamWriterUtil extends Object
XMLStreamWriter, which uses AutoCloseable to automaticly close the needed elements.| Constructor and Description |
|---|
XMLStreamWriterUtil(OutputStream outputStream) |
XMLStreamWriterUtil(StringBuilder builder) |
XMLStreamWriterUtil(Writer writer) |
XMLStreamWriterUtil(XMLStreamWriter writer) |
public XMLStreamWriterUtil(XMLStreamWriter writer)
public XMLStreamWriterUtil(OutputStream outputStream) throws XMLStreamException
XMLStreamExceptionpublic XMLStreamWriterUtil(Writer writer) throws XMLStreamException
XMLStreamExceptionpublic XMLStreamWriterUtil(StringBuilder builder) throws XMLStreamException
XMLStreamExceptionpublic AutoCloseable writeElement(String name) throws XMLStreamException
XMLStreamExceptionpublic AutoCloseable writeElement(String namespace, String name) throws XMLStreamException
XMLStreamExceptionpublic AutoCloseable writeDocument() throws XMLStreamException
XMLStreamExceptionpublic AutoCloseable writeDocument(String version) throws XMLStreamException
XMLStreamExceptionpublic AutoCloseable writeDocument(Charset charset, String version) throws XMLStreamException
XMLStreamExceptionpublic void writeEmptyElement(String namespaceURI, String localName) throws XMLStreamException
XMLStreamExceptionpublic void writeEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException
XMLStreamExceptionpublic void writeEmptyElement(String localName) throws XMLStreamException
XMLStreamExceptionpublic void close()
throws XMLStreamException
XMLStreamExceptionpublic void flush()
throws XMLStreamException
XMLStreamExceptionpublic void writeAttribute(String localName, String value) throws XMLStreamException
XMLStreamExceptionpublic void writeAttribute(String prefix, String namespaceURI, String localName, String value) throws XMLStreamException
XMLStreamExceptionpublic void writeAttribute(String namespaceURI, String localName, String value) throws XMLStreamException
XMLStreamExceptionpublic void writeNamespace(String prefix, String namespaceURI) throws XMLStreamException
XMLStreamExceptionpublic void writeDefaultNamespace(String namespaceURI) throws XMLStreamException
XMLStreamExceptionpublic void writeComment(String data) throws XMLStreamException
XMLStreamExceptionpublic void writeProcessingInstruction(String target) throws XMLStreamException
XMLStreamExceptionpublic void writeProcessingInstruction(String target, String data) throws XMLStreamException
XMLStreamExceptionpublic void writeCData(String data) throws XMLStreamException
XMLStreamExceptionpublic void writeDTD(String dtd) throws XMLStreamException
XMLStreamExceptionpublic void writeEntityRef(String name) throws XMLStreamException
XMLStreamExceptionpublic void writeCharacters(String text) throws XMLStreamException
XMLStreamExceptionpublic void writeCharacters(char[] text,
int start,
int len)
throws XMLStreamException
XMLStreamExceptionpublic String getPrefix(String uri) throws XMLStreamException
XMLStreamExceptionpublic void setPrefix(String prefix, String uri) throws XMLStreamException
XMLStreamExceptionpublic void setDefaultNamespace(String uri) throws XMLStreamException
XMLStreamExceptionpublic void setNamespaceContext(NamespaceContext context) throws XMLStreamException
XMLStreamExceptionpublic NamespaceContext getNamespaceContext()
public Object getProperty(String name) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2022. All rights reserved.