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

Examples of net.sf.joafip.store.service.objectio.serialize.output.IObjectOutput.byteSize()


    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 */);
 
View Full Code Here


    final IObjectOutput objectOutput;
    objectOutput = getObjectOutput(classInfo);
    assert !toWrite.isSubstituted();
    objectOutput.prepareWrite(toWrite);

    final int byteSizeForObject = objectOutput.byteSize(toWrite,
        HEADER_DATA_SIZE);
    /*
     * "long byte size" added to length for object and store data record
     * identifier
     */
 
View Full Code Here

    final ClassInfo classInfo = toWriteObjectAndPersistInfo.objectClassInfo;
    // ASSERTX
    assert classInfo != null && classInfo != ClassInfo.NULL : "class information for object not defined";
    final IObjectOutput objectOutput;
    objectOutput = getObjectOutput(classInfo);
    final int byteSize = objectOutput.byteSize(toWriteObjectAndPersistInfo,
        HEADER_DATA_SIZE);
    final byte[] binary = new byte[byteSize];
    final int offset = headerWriter.write(classInfo, binary);
    if (offset != HEADER_DATA_SIZE) {
      throw new ObjectIOException("header data size missmatch");
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.