Examples of deserializeCasFromXmi()


Examples of org.apache.uima.aae.UimaSerializer.deserializeCasFromXmi()

          AllowPreexistingFS allow) throws Exception {
    XmiSerializationSharedData deserSharedData;
    deserSharedData = getController().getInProcessCache().getCacheEntryForCAS(casReferenceId)
            .getDeserSharedData();
    UimaSerializer uimaSerializer = SerializerCache.lookupSerializerByThreadId();
    uimaSerializer.deserializeCasFromXmi(xmi, cas, deserSharedData, true, highWaterMark, allow);
  }
 
  private void deserialize(byte[] bytes, CAS cas, CacheEntry cacheEntry, TypeSystemImpl remoteTs,
          AllowPreexistingFS allow) throws Exception {
    ByteArrayInputStream istream = new ByteArrayInputStream(bytes);
View Full Code Here

Examples of org.apache.uima.aae.UimaSerializer.deserializeCasFromXmi()

    if (deserSharedData == null) {
      deserSharedData = new XmiSerializationSharedData();
      entry.setXmiSerializationData(deserSharedData);
    }
    UimaSerializer uimaSerializer = SerializerCache.lookupSerializerByThreadId();
    uimaSerializer.deserializeCasFromXmi(xmi, cas, deserSharedData, true, -1);
  }

  private void handleProcessResponseWithCASReference(MessageContext aMessageContext) {
    String casReferenceId = null;
    CacheEntry cacheEntry = null;
View Full Code Here

Examples of org.apache.uima.aae.UimaSerializer.deserializeCasFromXmi()

      switch (serialFormat) {
      case XMI:
        // Fetch serialized CAS from the message
        String xmi = aMessageContext.getStringMessage();
        deserSharedData = new XmiSerializationSharedData();
        uimaSerializer.deserializeCasFromXmi(xmi, cas, deserSharedData, true, -1);
        break;
      case BINARY:
        // *************************************************************************
        // Register the CAS with a local cache
        // *************************************************************************
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.