Package net.sf.joafip.heapfile.record.entity

Examples of net.sf.joafip.heapfile.record.entity.HeapRecord.writeToFile()


    // byte[] data = heapRecord.getDataAssociated();
    final byte[] data = new byte[10];
    heapRecord.setDataAssociated(data);
    System.arraycopy("0123456789".getBytes(), 0, data, 0, 10);
    heapRecord.setValueIsChangedValueToSave();
    heapRecord.writeToFile();
    readAndCheck(heapRecord, data);

    /*
     * free record
     */
 
View Full Code Here


    } catch (Exception exception) {
      // ignore error
    }
    // to force write
    heapRecord.setValueIsChangedValueToSave();
    heapRecord.writeToFile();
    readAndCheck(heapRecord, null);
  }

  /**
   * @param heapRecordWrote
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.