Examples of fromBinary()


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

  public short readShort() throws IOException {
    final short value;
    final AbstractConverter binaryConverter;
    try {
      binaryConverter = helperBinaryConversion.shortConverter;
      binaryConverter.fromBinary(binary, offset);
    } catch (BinaryConverterException exception) {
      throw new IOException(exception);
    }
    if (!binaryConverter.valueDefinedFromBinary) {
      throw new IOException(VALUE_NOT_DEFINED);
View Full Code Here

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

  public int readUnsignedShort() throws IOException {
    final int value;
    final AbstractConverter binaryConverter;
    try {
      binaryConverter = helperBinaryConversion.shortConverter;
      binaryConverter.fromBinary(binary, offset);
    } catch (BinaryConverterException exception) {
      throw new IOException(exception);
    }
    if (!binaryConverter.valueDefinedFromBinary) {
      throw new IOException(VALUE_NOT_DEFINED);
View Full Code Here

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

  public float readFloat() throws IOException {
    final float value;
    AbstractConverter binaryConverter;
    try {
      binaryConverter = helperBinaryConversion.floatConverter;
      binaryConverter.fromBinary(binary, offset);
    } catch (BinaryConverterException exception) {
      throw new IOException(exception);
    }
    if (!binaryConverter.valueDefinedFromBinary) {
      throw new IOException(VALUE_NOT_DEFINED);
View Full Code Here

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

  public int readInt() throws IOException {
    final int value;
    AbstractConverter binaryConverter;
    try {
      binaryConverter = helperBinaryConversion.integerConverter;
      binaryConverter.fromBinary(binary, offset);
    } catch (BinaryConverterException exception) {
      throw new IOException(exception);
    }
    if (!binaryConverter.valueDefinedFromBinary) {
      throw new IOException(VALUE_NOT_DEFINED);
View Full Code Here

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

  public long readLong() throws IOException {
    final long value;
    AbstractConverter binaryConverter;
    try {
      binaryConverter = helperBinaryConversion.longConverter;
      binaryConverter.fromBinary(binary, offset);
    } catch (BinaryConverterException exception) {
      throw new IOException(exception);
    }
    if (!binaryConverter.valueDefinedFromBinary) {
      throw new IOException(VALUE_NOT_DEFINED);
View Full Code Here

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

  public double readDouble() throws IOException {
    final double value;
    AbstractConverter binaryConverter;
    try {
      binaryConverter = helperBinaryConversion.doubleConverter;
      binaryConverter.fromBinary(binary, offset);
    } catch (BinaryConverterException exception) {
      throw new IOException(exception);
    }
    if (!binaryConverter.valueDefinedFromBinary) {
      throw new IOException(VALUE_NOT_DEFINED);
View Full Code Here

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

    /*
     * first data is class name identifier and flag
     */
    try {
      binaryConverter = helperBinaryConversion.integerConverter;
      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()

      /*
       * record format identifier
       */
      try {
        binaryConverter = helperBinaryConversion.shortConverter;
        binaryConverter.fromBinary(binary, offset);
      } catch (BinaryConverterException exception) {
        throw new ObjectIOException(FOR_DATA_RECORD
            + dataRecordIdentifier, exception);
      }
      offset += HelperBinaryConversion.SHORT_BYTE_SIZE;
View Full Code Here

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

      /*
       * joafip release id
       */
      try {
        binaryConverter = helperBinaryConversion.integerConverter;
        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()

       * data model identifier
       */

      try {
        binaryConverter = helperBinaryConversion.integerConverter;
        binaryConverter.fromBinary(binary, offset);
      } catch (BinaryConverterException exception) {
        throw new ObjectIOException(FOR_DATA_RECORD
            + dataRecordIdentifier, 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.