@ParametersAreNonnullByDefault public class IndentingXmiStreamWriter extends XmiStreamWriter
XmiStreamWriter
.writer
target
Constructor and Description |
---|
IndentingXmiStreamWriter(OutputStream stream)
Constructs a new
IndentingXmiStreamWriter on the given stream . |
IndentingXmiStreamWriter(OutputStream stream,
int indent)
Constructs a new
IndentingXmiStreamWriter on the given stream . |
Modifier and Type | Method and Description |
---|---|
protected void |
writeEndElement()
Writes the end of the current element.
|
protected void |
writeStartElement(String name)
Writes the start of an element
name |
writeAttribute, writeCharacters, writeEndDocument, writeNamespace, writeStartDocument
onAttribute, onComplete, onEndElement, onInitialize, onReference, onStartElement
requireEndBeforeFlush
onAttribute, onReference
public IndentingXmiStreamWriter(OutputStream stream) throws IOException
IndentingXmiStreamWriter
on the given stream
.stream
- the output stream to writeIOException
- if an I/O error occurs when writingpublic IndentingXmiStreamWriter(OutputStream stream, @Nonnegative int indent) throws IOException
IndentingXmiStreamWriter
on the given stream
.stream
- the output stream to writeIOException
- if an I/O error occurs when writingprotected void writeStartElement(String name) throws IOException
AbstractXmiStreamWriter
name
writeStartElement
in class XmiStreamWriter
name
- the name of the elementIOException
- if an I/O error occurs when writingprotected void writeEndElement() throws IOException
AbstractXmiStreamWriter
writeEndElement
in class XmiStreamWriter
IOException
- if an I/O error occurs when writingCopyright © 2013–2019 Atlanmod. All rights reserved.