public class XMLStreamWriterImpl extends java.lang.Object implements XMLStreamWriter
Constructor and Description |
---|
XMLStreamWriterImpl(java.io.OutputStream os,
boolean repair) |
XMLStreamWriterImpl(java.io.Writer w,
boolean repair) |
XMLStreamWriterImpl(WriteStream ws) |
XMLStreamWriterImpl(WriteStream ws,
boolean repair) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
javax.xml.namespace.NamespaceContext |
getNamespaceContext() |
java.lang.String |
getPrefix(java.lang.String uri) |
java.lang.Object |
getProperty(java.lang.String name) |
void |
setDefaultNamespace(java.lang.String uri) |
void |
setIndent(int indent) |
void |
setNamespaceContext(javax.xml.namespace.NamespaceContext context) |
void |
setPrefix(java.lang.String prefix,
java.lang.String uri) |
void |
setRepair(boolean repair) |
void |
writeAttribute(java.lang.String localName,
java.lang.String value) |
void |
writeAttribute(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value) |
void |
writeAttribute(java.lang.String prefix,
java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value) |
void |
writeCData(java.lang.String data) |
void |
writeCharacters(char[] text,
int start,
int len) |
void |
writeCharacters(java.lang.String text) |
void |
writeComment(java.lang.String data) |
void |
writeDefaultNamespace(java.lang.String namespaceURI) |
void |
writeDTD(java.lang.String dtd) |
void |
writeElement(java.lang.String localName,
java.lang.String contents) |
void |
writeEmptyElement(java.lang.String localName) |
void |
writeEmptyElement(java.lang.String namespaceURI,
java.lang.String localName) |
void |
writeEmptyElement(java.lang.String prefix,
java.lang.String localName,
java.lang.String namespaceURI) |
void |
writeEndDocument() |
void |
writeEndElement() |
void |
writeEndElement(java.lang.String localName) |
void |
writeEndElement(java.lang.String namespaceURI,
java.lang.String localName) |
void |
writeEntityRef(java.lang.String name) |
void |
writeNamespace(java.lang.String prefix,
java.lang.String namespaceURI) |
void |
writeProcessingInstruction(java.lang.String target) |
void |
writeProcessingInstruction(java.lang.String target,
java.lang.String data) |
void |
writeStartDocument() |
void |
writeStartDocument(java.lang.String version) |
void |
writeStartDocument(java.lang.String encoding,
java.lang.String version) |
void |
writeStartElement(java.lang.String localName) |
void |
writeStartElement(java.lang.String namespaceURI,
java.lang.String localName) |
void |
writeStartElement(java.lang.String prefix,
java.lang.String localName,
java.lang.String namespaceURI) |
public XMLStreamWriterImpl(WriteStream ws)
public XMLStreamWriterImpl(WriteStream ws, boolean repair)
public XMLStreamWriterImpl(java.io.Writer w, boolean repair)
public XMLStreamWriterImpl(java.io.OutputStream os, boolean repair)
public void setIndent(int indent)
public void setRepair(boolean repair)
public void close() throws XMLStreamException
close
in interface XMLStreamWriter
XMLStreamException
public void flush() throws XMLStreamException
flush
in interface XMLStreamWriter
XMLStreamException
public javax.xml.namespace.NamespaceContext getNamespaceContext()
getNamespaceContext
in interface XMLStreamWriter
public java.lang.String getPrefix(java.lang.String uri) throws XMLStreamException
getPrefix
in interface XMLStreamWriter
XMLStreamException
public java.lang.Object getProperty(java.lang.String name) throws java.lang.IllegalArgumentException
getProperty
in interface XMLStreamWriter
java.lang.IllegalArgumentException
public void setDefaultNamespace(java.lang.String uri) throws XMLStreamException
setDefaultNamespace
in interface XMLStreamWriter
XMLStreamException
public void setNamespaceContext(javax.xml.namespace.NamespaceContext context) throws XMLStreamException
setNamespaceContext
in interface XMLStreamWriter
XMLStreamException
public void setPrefix(java.lang.String prefix, java.lang.String uri) throws XMLStreamException
setPrefix
in interface XMLStreamWriter
XMLStreamException
public void writeAttribute(java.lang.String localName, java.lang.String value) throws XMLStreamException
writeAttribute
in interface XMLStreamWriter
XMLStreamException
public void writeAttribute(java.lang.String namespaceURI, java.lang.String localName, java.lang.String value) throws XMLStreamException
writeAttribute
in interface XMLStreamWriter
XMLStreamException
public void writeAttribute(java.lang.String prefix, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value) throws XMLStreamException
writeAttribute
in interface XMLStreamWriter
XMLStreamException
public void writeCData(java.lang.String data) throws XMLStreamException
writeCData
in interface XMLStreamWriter
XMLStreamException
public void writeCharacters(char[] text, int start, int len) throws XMLStreamException
writeCharacters
in interface XMLStreamWriter
XMLStreamException
public void writeCharacters(java.lang.String text) throws XMLStreamException
writeCharacters
in interface XMLStreamWriter
XMLStreamException
public void writeComment(java.lang.String data) throws XMLStreamException
writeComment
in interface XMLStreamWriter
XMLStreamException
public void writeDefaultNamespace(java.lang.String namespaceURI) throws XMLStreamException
writeDefaultNamespace
in interface XMLStreamWriter
XMLStreamException
public void writeDTD(java.lang.String dtd) throws XMLStreamException
writeDTD
in interface XMLStreamWriter
XMLStreamException
public void writeElement(java.lang.String localName, java.lang.String contents) throws XMLStreamException
XMLStreamException
public void writeEmptyElement(java.lang.String localName) throws XMLStreamException
writeEmptyElement
in interface XMLStreamWriter
XMLStreamException
public void writeEmptyElement(java.lang.String namespaceURI, java.lang.String localName) throws XMLStreamException
writeEmptyElement
in interface XMLStreamWriter
XMLStreamException
public void writeEmptyElement(java.lang.String prefix, java.lang.String localName, java.lang.String namespaceURI) throws XMLStreamException
writeEmptyElement
in interface XMLStreamWriter
XMLStreamException
public void writeEndDocument() throws XMLStreamException
writeEndDocument
in interface XMLStreamWriter
XMLStreamException
public void writeEndElement() throws XMLStreamException
writeEndElement
in interface XMLStreamWriter
XMLStreamException
public void writeEndElement(java.lang.String localName) throws XMLStreamException
XMLStreamException
public void writeEndElement(java.lang.String namespaceURI, java.lang.String localName) throws XMLStreamException
XMLStreamException
public void writeEntityRef(java.lang.String name) throws XMLStreamException
writeEntityRef
in interface XMLStreamWriter
XMLStreamException
public void writeNamespace(java.lang.String prefix, java.lang.String namespaceURI) throws XMLStreamException
writeNamespace
in interface XMLStreamWriter
XMLStreamException
public void writeProcessingInstruction(java.lang.String target) throws XMLStreamException
writeProcessingInstruction
in interface XMLStreamWriter
XMLStreamException
public void writeProcessingInstruction(java.lang.String target, java.lang.String data) throws XMLStreamException
writeProcessingInstruction
in interface XMLStreamWriter
XMLStreamException
public void writeStartDocument() throws XMLStreamException
writeStartDocument
in interface XMLStreamWriter
XMLStreamException
public void writeStartDocument(java.lang.String version) throws XMLStreamException
writeStartDocument
in interface XMLStreamWriter
XMLStreamException
public void writeStartDocument(java.lang.String encoding, java.lang.String version) throws XMLStreamException
writeStartDocument
in interface XMLStreamWriter
XMLStreamException
public void writeStartElement(java.lang.String localName) throws XMLStreamException
writeStartElement
in interface XMLStreamWriter
XMLStreamException
public void writeStartElement(java.lang.String namespaceURI, java.lang.String localName) throws XMLStreamException
writeStartElement
in interface XMLStreamWriter
XMLStreamException
public void writeStartElement(java.lang.String prefix, java.lang.String localName, java.lang.String namespaceURI) throws XMLStreamException
writeStartElement
in interface XMLStreamWriter
XMLStreamException