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

Examples of net.sf.joafip.store.service.objectio.serialize.output.ObjectOutputSerializable


    final StorageInfo storageInfo = new StorageInfo();
    final int offset = storageInfo.getHeaderDataSize();
    final ObjectAndPersistInfo objectAndPersistInfo =
    /**/new ObjectAndPersistInfo(toSerialize, false, classInfo,
        storageInfo);
    final IObjectOutput objectOutput = new ObjectOutputSerializable(this,
        classInfoFactory, proxyManager2, helperBinaryConversion);
    // prepare write
    objectOutput.prepareWrite(objectAndPersistInfo);
    assertTrue("must have value changed since a new object",
        objectOutput.isValueChanged(objectAndPersistInfo));
    assertNull("for initial write must not have original value",
        objectAndPersistInfo.originalValue);
    // storageInfo.setHeaderDataSize(offset);
    final int byteSize = objectOutput
        .byteSize(objectAndPersistInfo, offset);
    final byte[] binary = new byte[byteSize];
    // write
    final ObjectClassInfoAndDeclared[] sons = objectOutput
        .writeBody(binary, offset, objectAndPersistInfo, true/* updateOriginalValue */);
    return new WriteResult(objectAndPersistInfo, sons, binary);
  }
View Full Code Here


    final ObjectOutputGeneric objectOutputGeneric = new ObjectOutputGeneric(
        this, classInfoFactory, proxyManager2, helperBinaryConversion);
    objectOutputs[EnumObjectOutput.OBJECT_OUTPUT_GENERIC.ordinal()] = objectOutputGeneric;

    final ObjectOutputSerializable objectOutputSerializable;
    objectOutputSerializable = new ObjectOutputSerializable(this,
        classInfoFactory, proxyManager2, helperBinaryConversion);
    objectOutputs[EnumObjectOutput.OBJECT_OUTPUT_SERIALIZABLE.ordinal()] = objectOutputSerializable;

    final ObjectOutputExternalizable objectOutputExternalizable;
    objectOutputExternalizable = new ObjectOutputExternalizable(this,
View Full Code Here

TOP

Related Classes of net.sf.joafip.store.service.objectio.serialize.output.ObjectOutputSerializable

Copyright © 2018 www.massapicom. 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.