@ParametersAreNonnullByDefault public class XmiStreamWriter extends AbstractXmiStreamWriter
AbstractXmiStreamWriter
that uses a StAX implementation with cursors for writing XMI files.Modifier and Type | Field and Description |
---|---|
protected XMLStreamWriter |
writer
The XML writer on the
AbstractWriter.target . |
target
Constructor and Description |
---|
XmiStreamWriter(OutputStream stream)
Constructs a new
XmiStreamWriter on the given stream . |
Modifier and Type | Method and Description |
---|---|
protected void |
writeAttribute(String name,
String value)
Writes an attribute of the current element.
|
protected void |
writeCharacters(String characters)
Writes characters.
|
protected void |
writeEndDocument()
Writes the end of the document and finalizes the migration.
|
protected void |
writeEndElement()
Writes the end of the current element.
|
protected void |
writeNamespace(String prefix,
String uri)
Writes a namespace.
|
protected void |
writeStartDocument()
Writes the start of a document, including the general header.
|
protected void |
writeStartElement(String name)
Writes the start of an element
name |
onAttribute, onComplete, onEndElement, onInitialize, onReference, onStartElement
requireEndBeforeFlush
onAttribute, onReference
@Nonnull protected final XMLStreamWriter writer
AbstractWriter.target
.public XmiStreamWriter(OutputStream stream) throws IOException
XmiStreamWriter
on the given stream
.stream
- the output stream to writeIOException
- if an I/O error occurs when writingprotected void writeStartDocument() throws IOException
AbstractXmiStreamWriter
writeStartDocument
in class AbstractXmiStreamWriter
IOException
- if an I/O error occurs when writingprotected void writeStartElement(String name) throws IOException
AbstractXmiStreamWriter
name
writeStartElement
in class AbstractXmiStreamWriter
name
- the name of the elementIOException
- if an I/O error occurs when writingprotected void writeNamespace(String prefix, String uri) throws IOException
AbstractXmiStreamWriter
writeNamespace
in class AbstractXmiStreamWriter
prefix
- the prefix of the namespaceuri
- the URI of the namespaceIOException
- if an I/O error occurs when writingprotected void writeAttribute(String name, String value) throws IOException
AbstractXmiStreamWriter
writeAttribute
in class AbstractXmiStreamWriter
name
- the name of the attributevalue
- the value of the attributeIOException
- if an I/O error occurs when writingprotected void writeCharacters(String characters) throws IOException
AbstractXmiStreamWriter
writeCharacters
in class AbstractXmiStreamWriter
characters
- the charactersIOException
- if an I/O error occurs when writingprotected void writeEndElement() throws IOException
AbstractXmiStreamWriter
writeEndElement
in class AbstractXmiStreamWriter
IOException
- if an I/O error occurs when writingprotected void writeEndDocument() throws IOException
AbstractXmiStreamWriter
writeEndDocument
in class AbstractXmiStreamWriter
IOException
- if an I/O error occurs when writingCopyright © 2013–2019 Atlanmod. All rights reserved.