Examples of deserializeCasFromBinary()


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

      } else { // Processing a reply from a non-parallel delegate (binary or delta xmi or xmi)
        String serializationStrategy = endpointWithTimer.getSerializer();
        if (serializationStrategy.equals("binary")) {
          UimaSerializer uimaSerializer = SerializerCache.lookupSerializerByThreadId();
          byte[] binaryData = aMessageContext.getByteMessage();
          uimaSerializer.deserializeCasFromBinary(binaryData, cas);
        } else {
          if (aMessageContext.getMessageBooleanProperty(AsynchAEMessage.SentDeltaCas)) {
            int highWaterMark = cacheEntry.getHighWaterMark();
            deserialize(xmi, cas, casReferenceId, highWaterMark, AllowPreexistingFS.allow);
          } else {
View Full Code Here

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

        // Register the CAS with a local cache
        // *************************************************************************
        // CacheEntry entry = getController().getInProcessCache().register(cas, aMessageContext,
        // deserSharedData, casReferenceId);
        byte[] binarySource = aMessageContext.getByteMessage();
        uimaSerializer.deserializeCasFromBinary(binarySource, cas);
      }

      // *************************************************************************
      // Check and set up for Delta CAS reply
      // *************************************************************************
 
View Full Code Here

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

      // Register the CAS with a local cache
      // *************************************************************************
      // CacheEntry entry = getController().getInProcessCache().register(cas, aMessageContext,
      // deserSharedData, casReferenceId);
      byte[] binarySource = aMessageContext.getByteMessage();
      uimaSerializer.deserializeCasFromBinary(binarySource, cas);
    }

    // *************************************************************************
    // Check and set up for Delta CAS reply
    // *************************************************************************
 
View Full Code Here

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

      } else { // Processing a reply from a non-parallel delegate (binary or delta xmi or xmi)
        String serializationStrategy = endpointWithTimer.getSerializer();
        if (serializationStrategy.equals("binary")) {
          UimaSerializer uimaSerializer = SerializerCache.lookupSerializerByThreadId();
          byte[] binaryData = aMessageContext.getByteMessage();
          uimaSerializer.deserializeCasFromBinary(binaryData, cas);
        } else {
          if (aMessageContext.getMessageBooleanProperty(AsynchAEMessage.SentDeltaCas)) {
            int highWaterMark = cacheEntry.getHighWaterMark();
            deserialize(xmi, cas, casReferenceId, highWaterMark, AllowPreexistingFS.allow);
          } else {
View Full Code Here

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

        // Register the CAS with a local cache
        // *************************************************************************
        // CacheEntry entry = getController().getInProcessCache().register(cas, aMessageContext,
        // deserSharedData, casReferenceId);
        // BINARY format may be COMPRESSED etc, so update it upon reading
        serialFormat = uimaSerializer.deserializeCasFromBinary(binarySource, cas);
        // BINARY format may be COMPRESSED etc, so update it upon reading
        endpoint.setSerialFormat(serialFormat);
        break;
      case COMPRESSED_FILTERED:
        ByteArrayInputStream bais = new ByteArrayInputStream(binarySource);
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.