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

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


      final int signatureOffset, final ClassInfo classInfo)
      throws ObjectIOInvalidClassException, ObjectIOException {
    AbstractConverter binaryConverter;
    try {
      binaryConverter = helperBinaryConversion.integerConverter;
      binaryConverter.fromBinary(binary, signatureOffset);
    } catch (BinaryConverterException exception) {
      throw new ObjectIOException(exception);
    }
    if (!binaryConverter.valueDefinedFromBinary) {
      throw new ObjectIOException("signature value must be defined");
View Full Code Here


      final int signatureOffset, final ClassInfo classInfo)
      throws ObjectIOInvalidClassException, ObjectIOException {
    AbstractConverter binaryConverter;
    try {
      binaryConverter = helperBinaryConversion.integerConverter;
      binaryConverter.fromBinary(binary, signatureOffset);
    } catch (BinaryConverterException exception) {
      throw new ObjectIOException(exception);
    }
    if (!binaryConverter.valueDefinedFromBinary) {
      throw new ObjectIOException("signature value must be defined");
View Full Code Here

    // skip signature
    int offset = bodyBeginOffset + HelperBinaryConversion.INT_BYTE_SIZE;
    AbstractConverter binaryConverter;
    try {
      binaryConverter = helperBinaryConversion.integerConverter;
      binaryConverter.fromBinary(binary, offset);
    } catch (BinaryConverterException exception) {
      throw new ObjectIOException(exception);
    }
    if (!binaryConverter.valueDefinedFromBinary) {
      throw new ObjectIOException("array length value must be defined");
View Full Code Here

    int localOffset = offset;
    final char[] charArray;
    try {
      AbstractConverter binaryConverter;
      binaryConverter = helperBinaryConversion.integerConverter;
      binaryConverter.fromBinary(binary, localOffset);
      if (!binaryConverter.valueDefinedFromBinary) {
        throw new ObjectIOException(
            "char array length value must be defined");
      }
      final int charArrayLength = (Integer) binaryConverter.objectFromBinary;
View Full Code Here

      binaryConverter.objectFromBinary = null;// NOPMD
      localOffset += HelperBinaryConversion.INT_BYTE_SIZE;
      charArray = new char[charArrayLength];
      binaryConverter = helperBinaryConversion.characterConverter;
      for (int index = 0; index < charArrayLength; index++) {
        binaryConverter.fromBinary(binary, localOffset);
        if (!binaryConverter.valueDefinedFromBinary) {
          throw new ObjectIOException("char value must be defined");
        }
        charArray[index] = ((Character) binaryConverter.objectFromBinary)
            .charValue();
View Full Code Here

    /* add int size for signature */
    int localOffset = offset + HelperBinaryConversion.INT_BYTE_SIZE;
    AbstractConverter binaryConverter;
    try {
      binaryConverter = helperBinaryConversion.integerConverter;
      binaryConverter.fromBinary(binary, localOffset);
    } catch (BinaryConverterException exception) {
      throw new ObjectIOException(exception);
    }
    if (!binaryConverter.valueDefinedFromBinary) {
      throw new ObjectIOException(
View Full Code Here

    int offset = bodyBeginOffset;
    final char[] charArray;
    try {
      AbstractConverter binaryConverter;
      binaryConverter = helperBinaryConversion.integerConverter;
      binaryConverter.fromBinary(binary, offset);
      if (!binaryConverter.valueDefinedFromBinary) {
        throw new ObjectIOException(
            "array length value must be defined");
      }
      final int charArrayLength = (Integer) binaryConverter.objectFromBinary;
View Full Code Here

      binaryConverter.objectFromBinary = null;// NOPMD
      offset += HelperBinaryConversion.INT_BYTE_SIZE;
      charArray = new char[charArrayLength];
      binaryConverter = helperBinaryConversion.characterConverter;
      for (int index = 0; index < charArrayLength; index++) {
        binaryConverter.fromBinary(binary, offset);
        if (!binaryConverter.valueDefinedFromBinary) {
          throw new ObjectIOException("char value must be defined");
        }
        charArray[index] = ((Character) binaryConverter.objectFromBinary)
            .charValue();
View Full Code Here

    ObjectAndPersistInfo objectAndPersistInfo;
    AbstractConverter fromBinary;
    try {
      fromBinary = helperBinaryConversion.nullableAndTypedReferenceConverter;
      fromBinary.fromBinary(binary, offset);
    } catch (BinaryConverterException exception) {
      throw new ObjectIOException(exception);
    }
    if (fromBinary.valueDefinedFromBinary) {
      final DataRecordIdentifier identifier = (DataRecordIdentifier)
View Full Code Here

    } else if (typeId == HelperBinaryConversion.REFERENCE_TYPE) {
      AbstractConverter binaryConverter;
      try {
        binaryConverter = helperBinaryConversion.nullableAndTypedReferenceConverter;
        binaryConverter.fromBinary(binary, offset);
      } catch (BinaryConverterException exception) {
        throw new ObjectIOException(exception);
      }
      if (binaryConverter.valueDefinedFromBinary) {
        /*
 
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.