Examples of RandomAccessDataFile


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

Examples of com.intellij.util.io.RandomAccessDataFile

  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

Examples of com.intellij.util.io.RandomAccessDataFile

  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

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) throws IOException {
    myFile = new RandomAccessDataFile(filePath);
    if (myFile.length() == 0) {
      fillInHeader(CONNECTED_MAGIC, 0);
      myIsDirty = true;
    }
    else {
View Full Code Here

Examples of org.springframework.boot.loader.data.RandomAccessDataFile

    assertThat(this.jarFile.size(), equalTo((int) this.rootJarFile.length()));
  }

  @Test
  public void close() throws Exception {
    RandomAccessDataFile randomAccessDataFile = spy(new RandomAccessDataFile(
        this.rootJarFile, 1));
    JarFile jarFile = new JarFile(randomAccessDataFile);
    jarFile.close();
    verify(randomAccessDataFile).close();
  }
View Full Code Here

Examples of org.springframework.boot.loader.data.RandomAccessDataFile

   * Create a new {@link JarFile} backed by the specified file.
   * @param file the root jar file
   * @throws IOException
   */
  public JarFile(File file) throws IOException {
    this(new RandomAccessDataFile(file));
  }
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.