public class PrettyXMLStreamWriter extends StreamWriterDelegate
| Constructor and Description |
|---|
PrettyXMLStreamWriter(XMLStreamWriter writer)
Create instance using default indentation (\t) and line separator (\n).
|
PrettyXMLStreamWriter(XMLStreamWriter writer,
String indentation,
String newline)
Create instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setParent(XMLStreamWriter parent) |
void |
writeCData(String data) |
void |
writeCharacters(char[] text,
int start,
int len) |
void |
writeCharacters(String text) |
void |
writeComment(String data) |
void |
writeEmptyElement(String localName) |
void |
writeEmptyElement(String namespaceURI,
String localName) |
void |
writeEmptyElement(String prefix,
String localName,
String namespaceURI) |
void |
writeEndElement() |
void |
writeProcessingInstruction(String target) |
void |
writeProcessingInstruction(String target,
String data) |
void |
writeStartDocument() |
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) |
close, flush, getNamespaceContext, getParent, getPrefix, getProperty, setDefaultNamespace, setNamespaceContext, setPrefix, writeAttribute, writeAttribute, writeAttribute, writeDefaultNamespace, writeDTD, writeEndDocument, writeEntityRef, writeNamespacepublic PrettyXMLStreamWriter(XMLStreamWriter writer)
writer - parent writerpublic PrettyXMLStreamWriter(XMLStreamWriter writer, String indentation, String newline)
writer - parent writerindentation - line indentationnewline - line separatorpublic void setParent(XMLStreamWriter parent)
setParent in class StreamWriterDelegatepublic void writeStartDocument()
throws XMLStreamException
writeStartDocument in interface XMLStreamWriterwriteStartDocument in class StreamWriterDelegateXMLStreamExceptionpublic void writeStartDocument(String version) throws XMLStreamException
writeStartDocument in interface XMLStreamWriterwriteStartDocument in class StreamWriterDelegateXMLStreamExceptionpublic void writeStartDocument(String encoding, String version) throws XMLStreamException
writeStartDocument in interface XMLStreamWriterwriteStartDocument in class StreamWriterDelegateXMLStreamExceptionpublic void writeStartElement(String localName) throws XMLStreamException
writeStartElement in interface XMLStreamWriterwriteStartElement in class StreamWriterDelegateXMLStreamExceptionpublic void writeStartElement(String namespaceURI, String localName) throws XMLStreamException
writeStartElement in interface XMLStreamWriterwriteStartElement in class StreamWriterDelegateXMLStreamExceptionpublic void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException
writeStartElement in interface XMLStreamWriterwriteStartElement in class StreamWriterDelegateXMLStreamExceptionpublic void writeEmptyElement(String namespaceURI, String localName) throws XMLStreamException
writeEmptyElement in interface XMLStreamWriterwriteEmptyElement in class StreamWriterDelegateXMLStreamExceptionpublic void writeEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException
writeEmptyElement in interface XMLStreamWriterwriteEmptyElement in class StreamWriterDelegateXMLStreamExceptionpublic void writeEmptyElement(String localName) throws XMLStreamException
writeEmptyElement in interface XMLStreamWriterwriteEmptyElement in class StreamWriterDelegateXMLStreamExceptionpublic void writeEndElement()
throws XMLStreamException
writeEndElement in interface XMLStreamWriterwriteEndElement in class StreamWriterDelegateXMLStreamExceptionpublic void writeCData(String data) throws XMLStreamException
writeCData in interface XMLStreamWriterwriteCData in class StreamWriterDelegateXMLStreamExceptionpublic void writeCharacters(String text) throws XMLStreamException
writeCharacters in interface XMLStreamWriterwriteCharacters in class StreamWriterDelegateXMLStreamExceptionpublic void writeCharacters(char[] text,
int start,
int len)
throws XMLStreamException
writeCharacters in interface XMLStreamWriterwriteCharacters in class StreamWriterDelegateXMLStreamExceptionpublic void writeComment(String data) throws XMLStreamException
writeComment in interface XMLStreamWriterwriteComment in class StreamWriterDelegateXMLStreamExceptionpublic void writeProcessingInstruction(String target) throws XMLStreamException
writeProcessingInstruction in interface XMLStreamWriterwriteProcessingInstruction in class StreamWriterDelegateXMLStreamExceptionpublic void writeProcessingInstruction(String target, String data) throws XMLStreamException
writeProcessingInstruction in interface XMLStreamWriterwriteProcessingInstruction in class StreamWriterDelegateXMLStreamExceptionCopyright © 2005–2019 Apache Software Foundation. All rights reserved.