Package net.sf.joafip.store.service.objectio.serialize.input

Examples of net.sf.joafip.store.service.objectio.serialize.input.IObjectInput.createObject()


    final IObjectInput objectInput = new ObjectInputImmediateSerializable(
        this, classInfoFactory, proxyManager2, helperBinaryConversion);

    final StorageInfo storageInfo = new StorageInfo();
    // storageInfo.setHeaderDataSize(0);
    ObjectAndPersistInfo unserializedAndPersistInfo = objectInput
        .createObject(dataRecordIdentifier, binary, classInfo,
            storageInfo);
    originalValue = unserializedAndPersistInfo.originalValue;
    assertSons(toSerialize, originalValue, referenceds);
    final Object unserialized = unserializedAndPersistInfo.getObject();
View Full Code Here


                     */, objectAndItsClassInfo, false/* updateOriginalValue */);
    // dummy data record identifier for object
    final DataRecordIdentifier dataRecordIdentifier = DataRecordIdentifier.LAST;
    final IObjectInput objectInput = new ObjectInputForBasic(this,
        classInfoFactory, proxyManager2, helperBinaryConversion);
    final Integer created = (Integer) objectInput.createObject(
        dataRecordIdentifier, binary, classInfo, storageInfo)
        .getObject();
    assertEquals("read and wrote must have the same value", integer,
        created);
  }
View Full Code Here

      ObjectIOClassNotFoundException, ObjectIOInvalidClassException,
      ObjectIODataCorruptedException, ObjectIONotSerializableException {
    final IObjectInput objectInput = getObjectInput(classInfo, notLazy);
    final ObjectAndPersistInfo objectAndPersistInfo;
    try {
      objectAndPersistInfo = objectInput.createObject(
          dataRecordIdentifier, binary, classInfo, storageInfo);
    } catch (final RuntimeException exception) {
      logger.fatal("error creating object of class "
          + classInfo.toString() + "\ndata record identifier "
          + dataRecordIdentifier + "\nusing object input "
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.