public abstract class XmlCasSerializer extends Object
For more options, see XmiCasSerializer.
| Constructor and Description |
|---|
XmlCasSerializer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
serialize(CAS aCAS,
OutputStream aStream)
Serializes a CAS to XMI format and writes it to an output stream.
|
static void |
serialize(CAS aCAS,
TypeSystem aTargetTypeSystem,
OutputStream aStream)
Serializes a CAS to XMI format and writes it to an output stream.
|
public static void serialize(CAS aCAS, OutputStream aStream) throws SAXException, IOException
aCAS - CAS to serialize.aStream - output stream to which to write the XMI documentSAXException - if a problem occurs during XMI serializationIOException - if an I/O failure occurspublic static void serialize(CAS aCAS, TypeSystem aTargetTypeSystem, OutputStream aStream) throws SAXException, IOException
aCAS - CAS to serialize.aTargetTypeSystem - type system to which the produced XMI will conform. Any types or features not in the
target type system will not be serialized.aStream - output stream to which to write the XMI documentSAXException - if a problem occurs during XMI serializationIOException - if an I/O failure occursCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.