public abstract class XmlCasDeserializer extends Object
Constructor and Description |
---|
XmlCasDeserializer() |
Modifier and Type | Method and Description |
---|---|
static void |
deserialize(InputStream aStream,
CAS aCAS)
Deserializes a CAS from a standoff-XML format.
|
static void |
deserialize(InputStream aStream,
CAS aCAS,
boolean aLenient)
Deserializes a CAS from XMI or XCAS.
|
public static void deserialize(InputStream aStream, CAS aCAS) throws SAXException, 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.SAXException
- if an XML Parsing error occursIOException
- if an I/O failure occurspublic static void deserialize(InputStream aStream, CAS aCAS, boolean aLenient) throws SAXException, 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.SAXException
- if an XML Parsing error occursIOException
- if an I/O failure occursCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.