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

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


  public void testInteger() throws ObjectIOException,
      ObjectIOInvalidClassException, ObjectIONotSerializableException,
      ObjectIODataRecordNotFoundException,
      ObjectIOClassNotFoundException, ObjectIODataCorruptedException,
      ClassInfoException, ObjectIOTooBigForSerializationException {
    final IObjectOutput objectOutput = new ObjectOutputForBasic(this,
        classInfoFactory, proxyManager2, helperBinaryConversion);
    final ClassInfo classInfo = classInfoFactory
        .getNoProxyClassInfo(Integer.class);
    final Integer integer = Integer.valueOf(10);
    final StorageInfo storageInfo = new StorageInfo();
    final ObjectAndPersistInfo objectAndItsClassInfo =
    /**/new ObjectAndPersistInfo(integer, false, classInfo, storageInfo);
    objectOutput.prepareWrite(objectAndItsClassInfo);
    final byte[] binary = new byte[1000];
    final int offset = storageInfo.getHeaderDataSize();
    storageInfo.setHeaderDataSize(offset);
    // int byte size to skip class name information
    objectOutput
        .writeBody(binary, offset/*
                     * bodyBeginOffset for class id
                     */, objectAndItsClassInfo, false/* updateOriginalValue */);
    // dummy data record identifier for object
    final DataRecordIdentifier dataRecordIdentifier = DataRecordIdentifier.LAST;
View Full Code Here


        proxyManager2, helperBinaryConversion);
    objectInputs[EnumObjectInput.OBJECT_INPUT_BASIC.ordinal()] =
    /**/objectInputBasic;

    final IObjectOutput objectOutputBasic;
    objectOutputBasic = new ObjectOutputForBasic(this, classInfoFactory,
        proxyManager2, helperBinaryConversion);
    objectOutputs[EnumObjectOutput.OBJECT_OUTPUT_BASIC.ordinal()] =
    /**/objectOutputBasic;

    objectInputEnum = new ObjectInputForEnum(this, classInfoFactory,
View Full Code Here

TOP

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

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.