public class DefaultXmlStreamWriter extends Object implements XmlStreamWriter
| Constructor and Description |
|---|
DefaultXmlStreamWriter(Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPrefix(String prefix,
String namespace) |
void |
close() |
void |
flush() |
void |
writeAttribute(String localname,
String value) |
void |
writeEndDocument() |
void |
writeEndElement() |
void |
writeStartDocument() |
void |
writeStartDocument(String encoding,
String version) |
void |
writeStartElement(String name) |
public DefaultXmlStreamWriter(Writer writer) throws XmlIOException
XmlIOExceptionpublic void writeStartDocument()
throws XmlIOException
writeStartDocument in interface XmlStreamWriterXmlIOExceptionpublic void writeStartDocument(String encoding, String version) throws XmlIOException
writeStartDocument in interface XmlStreamWriterXmlIOExceptionpublic void addPrefix(String prefix, String namespace) throws XmlIOException
addPrefix in interface XmlStreamWriterXmlIOExceptionpublic void writeStartElement(String name) throws XmlIOException
writeStartElement in interface XmlStreamWriterXmlIOExceptionpublic void writeAttribute(String localname, String value) throws XmlIOException
writeAttribute in interface XmlStreamWriterXmlIOExceptionpublic void writeEndElement()
throws XmlIOException
writeEndElement in interface XmlStreamWriterXmlIOExceptionpublic void writeEndDocument()
throws XmlIOException
writeEndDocument in interface XmlStreamWriterXmlIOExceptionpublic void flush()
throws XmlIOException
flush in interface XmlStreamWriterXmlIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2018. All rights reserved.