Examples of fromBinary()


Examples of akka.serialization.Serializer.fromBinary()

    // Turn the object into bytes
    byte[] bytes = serializer.toBinary(originalMessage);

    // Turn the byte[] back into an object,
    MyMessage deSerializedMessage = (MyMessage) serializer.fromBinary(
        bytes, MyMessage.class);

    System.out.println("The de-serialized message is as " + deSerializedMessage);

    system.shutdown();
View Full Code Here

Examples of net.sf.joafip.store.service.binary.AbstractConverter.fromBinary()

      int currentOffset = offset;

      AbstractConverter binaryConverter;
      try {
        binaryConverter = helperBinaryConversion.integerConverter;
        binaryConverter.fromBinary(binary, currentOffset);
      } catch (BinaryConverterException exception) {
        throw new HeapRecordableException(exception);
      }
      if (!binaryConverter.valueDefinedFromBinary) {
        throw new HeapRecordableException(
View Full Code Here

Examples of net.sf.joafip.store.service.binary.AbstractConverter.fromBinary()

      }
      final int numberOfReferencing = (Integer) binaryConverter.objectFromBinary;
      binaryConverter.objectFromBinary = null;// NOPMD
      currentOffset += HelperBinaryConversion.INT_BYTE_SIZE;
      binaryConverter = helperBinaryConversion.referenceConverter;
      binaryConverter.fromBinary(binary, currentOffset);
      final DataRecordIdentifier referenced = (DataRecordIdentifier) binaryConverter.objectFromBinary;
      binaryConverter.objectFromBinary = null;// NOPMD
      currentOffset += HelperBinaryConversion.REFERENCE_BYTE_SIZE;

      final ReferenceLink referenceLink = new ReferenceLink(referenced);
View Full Code Here

Examples of net.sf.joafip.store.service.binary.AbstractConverter.fromBinary()

      currentOffset += HelperBinaryConversion.REFERENCE_BYTE_SIZE;

      final ReferenceLink referenceLink = new ReferenceLink(referenced);
      for (int count = 0; count < numberOfReferencing; count++) {
        binaryConverter = helperBinaryConversion.referenceConverter;
        binaryConverter.fromBinary(binary, currentOffset);
        if (!binaryConverter.valueDefinedFromBinary) {
          throw new HeapRecordableException(
              "referencing data record identifier value must be defined");
        }
        final DataRecordIdentifier referencing = (DataRecordIdentifier)
View Full Code Here

Examples of net.sf.joafip.store.service.binary.AbstractConverter.fromBinary()

        /**/binaryConverter.objectFromBinary;
        binaryConverter.objectFromBinary = null;// NOPMD
        currentOffset += HelperBinaryConversion.REFERENCE_BYTE_SIZE;
        try {
          binaryConverter = helperBinaryConversion.integerConverter;
          binaryConverter.fromBinary(binary, currentOffset);
        } catch (BinaryConverterException exception) {
          throw new HeapRecordableException(exception);
        }
        if (!binaryConverter.valueDefinedFromBinary) {
          throw new HeapRecordableException(
View Full Code Here

Examples of net.sf.joafip.store.service.binary.AbstractConverter.fromBinary()

  protected DataRecordIdentifier unmarshallElement(final byte[] binary,
      final int offset) throws HeapRecordableException {
    AbstractConverter binaryConverter;
    try {
      binaryConverter = helperBinaryConversion.referenceConverter;
      binaryConverter.fromBinary(binary, offset);
    } catch (BinaryConverterException exception) {
      throw new HeapRecordableException(exception);
    }
    if (!binaryConverter.valueDefinedFromBinary) {
      throw new HeapRecordableException(
View Full Code Here

Examples of net.sf.joafip.store.service.binary.AbstractConverter.fromBinary()

      final byte[] binary, final int offset)
      throws HeapRecordableException {
    AbstractConverter binaryConverter;
    try {
      binaryConverter = helperBinaryConversion.booleanConverter;
      binaryConverter.fromBinary(binary, offset);
    } catch (BinaryConverterException exception) {
      throw new HeapRecordableException(exception);
    }
    if (!binaryConverter.valueDefinedFromBinary) {
      throw new HeapRecordableException("color value must be defined");
View Full Code Here

Examples of net.sf.joafip.store.service.binary.AbstractConverter.fromBinary()

      final byte[] binary, final int offset)
      throws HeapRecordableException {
    AbstractConverter binaryConverter;
    try {
      binaryConverter = helperBinaryConversion.integerConverter;
      binaryConverter.fromBinary(binary, offset);
    } catch (BinaryConverterException exception) {
      throw new HeapRecordableException(exception);
    }
    if (!binaryConverter.valueDefinedFromBinary) {
      throw new HeapRecordableException(
View Full Code Here

Examples of net.sf.joafip.store.service.binary.AbstractConverter.fromBinary()

      final byte[] binary, final int offset)
      throws HeapRecordableException {
    AbstractConverter binaryConverter;
    try {
      binaryConverter = helperBinaryConversion.nullableAndTypedReferenceConverter;
      binaryConverter.fromBinary(binary, offset);
    } catch (BinaryConverterException exception) {
      throw new HeapRecordableException(exception);
    }
    if (!binaryConverter.valueDefinedFromBinary) {
      throw new HeapRecordableException(
View Full Code Here

Examples of net.sf.joafip.store.service.binary.AbstractConverter.fromBinary()

      assertValueDefined(byteConverter);
      garbageCollectorState =
      /**/(Byte) byteConverter.objectFromBinary;
      offset += HelperBinaryConversion.BYTE_BYTE_SIZE;

      booleanConverter.fromBinary(binary, offset);
      assertValueDefined(booleanConverter);
      garbageManagement = (Boolean) booleanConverter.objectFromBinary;

      nullableAndTypedReferenceConverter.objectFromBinary = null; // NOPMD
      byteConverter.objectFromBinary = null; // NOPMD
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.