public class UimaSerializer extends Object
Constructor and Description |
---|
UimaSerializer() |
Modifier and Type | Method and Description |
---|---|
org.apache.uima.cas.impl.OutOfTypeSystemData |
deSerialiazeFromXCAS(String anXcas,
org.apache.uima.cas.CAS aCas)
Serializes XCas into CAS
|
void |
deserializeCasFromBinary(byte[] binarySource,
org.apache.uima.cas.CAS aCAS)
Utility method for deserializing a CAS from a binary
|
void |
deserializeCasFromXmi(String anXmlStr,
org.apache.uima.cas.CAS aCAS,
org.apache.uima.cas.impl.XmiSerializationSharedData aSharedData,
boolean aLenient,
int aMergePoint)
Utility method for deserializing a CAS from an XMI String
|
void |
deserializeCasFromXmi(String anXmlStr,
org.apache.uima.cas.CAS aCAS,
org.apache.uima.cas.impl.XmiSerializationSharedData aSharedData,
boolean aLenient,
int aMergePoint,
org.apache.uima.cas.impl.AllowPreexistingFS allow) |
byte[] |
serializeCasToBinary(org.apache.uima.cas.CAS aCAS) |
byte[] |
serializeCasToBinary(org.apache.uima.cas.CAS aCAS,
org.apache.uima.cas.Marker aMark) |
String |
serializeCasToXmi(org.apache.uima.cas.CAS aCAS,
org.apache.uima.cas.impl.XmiSerializationSharedData serSharedData)
Utility method for serializing a CAS to an XMI String
|
String |
serializeCasToXmi(org.apache.uima.cas.CAS aCAS,
org.apache.uima.cas.impl.XmiSerializationSharedData serSharedData,
org.apache.uima.cas.Marker aMarker) |
void |
serializeToXCAS(OutputStream stream,
org.apache.uima.cas.CAS aCAS,
String encoding,
org.apache.uima.cas.TypeSystem typeSystem,
org.apache.uima.cas.impl.OutOfTypeSystemData otsd)
Serializes CAS into a given OutputStream
|
void |
serializeToXMI(OutputStream stream,
org.apache.uima.cas.CAS aCAS,
String encoding,
org.apache.uima.cas.TypeSystem typeSystem,
org.apache.uima.cas.impl.OutOfTypeSystemData otsd)
Serializes CAS into a given OutputStream
|
public org.apache.uima.cas.impl.OutOfTypeSystemData deSerialiazeFromXCAS(String anXcas, org.apache.uima.cas.CAS aCas) throws Exception
anXcas
- aCas
- Exception
public void serializeToXCAS(OutputStream stream, org.apache.uima.cas.CAS aCAS, String encoding, org.apache.uima.cas.TypeSystem typeSystem, org.apache.uima.cas.impl.OutOfTypeSystemData otsd) throws IOException, SAXException
stream
- aCAS
- encoding
- typeSystem
- IOException
SAXException
public void serializeToXMI(OutputStream stream, org.apache.uima.cas.CAS aCAS, String encoding, org.apache.uima.cas.TypeSystem typeSystem, org.apache.uima.cas.impl.OutOfTypeSystemData otsd) throws IOException, SAXException
stream
- aCAS
- encoding
- typeSystem
- IOException
SAXException
public String serializeCasToXmi(org.apache.uima.cas.CAS aCAS, org.apache.uima.cas.impl.XmiSerializationSharedData serSharedData) throws Exception
Exception
public String serializeCasToXmi(org.apache.uima.cas.CAS aCAS, org.apache.uima.cas.impl.XmiSerializationSharedData serSharedData, org.apache.uima.cas.Marker aMarker) throws Exception
Exception
public void deserializeCasFromXmi(String anXmlStr, org.apache.uima.cas.CAS aCAS, org.apache.uima.cas.impl.XmiSerializationSharedData aSharedData, boolean aLenient, int aMergePoint) throws FactoryConfigurationError, ParserConfigurationException, SAXException, IOException
public void deserializeCasFromXmi(String anXmlStr, org.apache.uima.cas.CAS aCAS, org.apache.uima.cas.impl.XmiSerializationSharedData aSharedData, boolean aLenient, int aMergePoint, org.apache.uima.cas.impl.AllowPreexistingFS allow) throws FactoryConfigurationError, ParserConfigurationException, SAXException, IOException
public void deserializeCasFromBinary(byte[] binarySource, org.apache.uima.cas.CAS aCAS) throws Exception
Exception
public byte[] serializeCasToBinary(org.apache.uima.cas.CAS aCAS) throws Exception
Exception
Copyright © 2017. All rights reserved.