Package com.intellij.util.io

Examples of com.intellij.util.io.RandomAccessDataFile


  private static final int HEADER_MAGIC_OFFSET = 0;
  private static final int HEADER_WASTE_SIZE_OFFSET = 4;
  private boolean myIsDirty = false;

  public DataTable(final File filePath, final PagePool pool) throws IOException {
    myFile = new RandomAccessDataFile(filePath, pool);
    if (myFile.length() == 0) {
      markDirty();
    }
    else {
      readInHeader(filePath);
View Full Code Here


  private TIntArrayList myFreeRecordsList = null;
  private boolean myIsDirty = false;

  public AbstractRecordsTable(final File storageFilePath, final PagePool pool) throws IOException {
    myStorage = new RandomAccessDataFile(storageFilePath, pool);
    if (myStorage.length() == 0) {
      myStorage.put(0, new byte[getHeaderSize()], 0, getHeaderSize());
      markDirty();
    }
    else {
View Full Code Here

  private TIntArrayList myFreeRecordsList = null;
  private boolean myIsDirty = false;

  public RecordsTable(final File storageFilePath) throws IOException {
    myStorage = new RandomAccessDataFile(storageFilePath);
    if (myStorage.length() == 0) {
      cleanRecord(0); // Initialize header
      myIsDirty = true;
    }
    else {
View Full Code Here

  private static final int HEADER_MAGIC_OFFSET = 0;
  private static final int HEADER_WASTE_SIZE_OFFSET = 4;
  private boolean myIsDirty = false;

  public DataTable(final File filePath) throws IOException {
    myFile = new RandomAccessDataFile(filePath);
    if (myFile.length() == 0) {
      fillInHeader(CONNECTED_MAGIC, 0);
      myIsDirty = true;
    }
    else {
View Full Code Here

TOP

Related Classes of com.intellij.util.io.RandomAccessDataFile

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.