public abstract class XmlCasDeserializer
extends java.lang.Object
| Constructor and Description |
|---|
XmlCasDeserializer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
deserialize(java.io.InputStream aStream,
CAS aCAS)
Deserializes a CAS from a standoff-XML format.
|
static void |
deserialize(java.io.InputStream aStream,
CAS aCAS,
boolean aLenient)
Deserializes a CAS from XMI.
|
public static void deserialize(java.io.InputStream aStream,
CAS aCAS)
throws org.xml.sax.SAXException,
java.io.IOException
aStream - input stream from which to read the XML documentaCAS - CAS into which to deserialize. This CAS must be set up with a type system that is
compatible with that in the XML.org.xml.sax.SAXException - if an XML Parsing error occursjava.io.IOException - if an I/O failure occurspublic static void deserialize(java.io.InputStream aStream,
CAS aCAS,
boolean aLenient)
throws org.xml.sax.SAXException,
java.io.IOException
aStream - input stream from which to read the XML documentaCAS - CAS into which to deserialize. This CAS must be set up with a type system that is
compatible with that in the XMLaLenient - if true, unknown Types will be ignored. If false, unknown Types will cause an
exception. The default is false.org.xml.sax.SAXException - if an XML Parsing error occursjava.io.IOException - if an I/O failure occursCopyright © 2013. All Rights Reserved.