Examples of fromBinary()


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

       */
      if (recordFormatId == RecordFormatIdentifier.ID_FOR_3_0_1_THRU_3_1_0) {

        try {
          binaryConverter = helperBinaryConversion.byteConverter;
          binaryConverter.fromBinary(binary, offset);
        } catch (BinaryConverterException exception) {
          throw new ObjectIOException(FOR_DATA_RECORD
              + dataRecordIdentifier, exception);
        }
        if (!binaryConverter.valueDefinedFromBinary) {
View Full Code Here

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

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

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

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

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

    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

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

      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

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

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

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

    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

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

      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

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

    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
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.