public abstract class XmlCasSerializer
extends java.lang.Object
For more options, see XmiCasSerializer
.
Constructor and Description |
---|
XmlCasSerializer() |
Modifier and Type | Method and Description |
---|---|
static void |
serialize(CAS aCAS,
java.io.OutputStream aStream)
Serializes a CAS to XMI format and writes it to an output stream.
|
static void |
serialize(CAS aCAS,
TypeSystem aTargetTypeSystem,
java.io.OutputStream aStream)
Serializes a CAS to XMI format and writes it to an output stream.
|
public static void serialize(CAS aCAS, java.io.OutputStream aStream) throws org.xml.sax.SAXException, java.io.IOException
aCAS
- CAS to serialize.aStream
- output stream to which to write the XMI documentorg.xml.sax.SAXException
- if a problem occurs during XMI serializationjava.io.IOException
- if an I/O failure occurspublic static void serialize(CAS aCAS, TypeSystem aTargetTypeSystem, java.io.OutputStream aStream) throws org.xml.sax.SAXException, java.io.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 documentorg.xml.sax.SAXException
- if a problem occurs during XMI serializationjava.io.IOException
- if an I/O failure occursCopyright © 2006–2014 The Apache Software Foundation. All rights reserved.