Package net.sf.joafip.store.service.binary

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


      }
      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

      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

        /**/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

  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

      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

      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

      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

      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

      ObjectIODataCorruptedException {
    final ForTestClass read = new ForTestClass();
    AbstractConverter binaryConverter;
    try {
      binaryConverter = helperBinaryConversion.characterConverter;
      binaryConverter.fromBinary(binary, bodyBeginOffset);
    } catch (BinaryConverterException exception) {
      throw new ObjectIOException(exception);
    }
    if (!binaryConverter.valueDefinedFromBinary) {
      throw new ObjectIOException("value must be defined");
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.