Java 类com.intellij.util.io.storage.AbstractStorage 实例源码

项目:intellij-ce-playground    文件:ChangeListStorageImpl.java   
public synchronized void writeNextSet(ChangeSet changeSet) {
  if (isCompletelyBroken) return;

  try {
    AbstractStorage.StorageDataOutput out = myStorage.writeStream(myStorage.createNextRecord(), true);
    try {
      changeSet.write(out);
    }
    finally {
      out.close();
    }
    myStorage.setLastId(myLastId);
    myStorage.force();
  }
  catch (IOException e) {
    handleError(e, null);
  }
}
项目:tools-idea    文件:ChangeListStorageImpl.java   
public synchronized void writeNextSet(ChangeSet changeSet) {
  if (isCompletelyBroken) return;

  try {
    AbstractStorage.StorageDataOutput out = myStorage.writeStream(myStorage.createNextRecord(), true);
    try {
      changeSet.write(out);
    }
    finally {
      out.close();
    }
    myStorage.setLastId(myLastId);
    myStorage.force();
  }
  catch (IOException e) {
    handleError(e, null);
  }
}
项目:consulo    文件:ChangeListStorageImpl.java   
public synchronized void writeNextSet(ChangeSet changeSet) {
  if (isCompletelyBroken) return;

  try {
    AbstractStorage.StorageDataOutput out = myStorage.writeStream(myStorage.createNextRecord(), true);
    try {
      changeSet.write(out);
    }
    finally {
      out.close();
    }
    myStorage.setLastId(myLastId);
    myStorage.force();
  }
  catch (IOException e) {
    handleError(e, null);
  }
}
项目:intellij-ce-playground    文件:LocalHistoryStorageTest.java   
private int createRecord(int size) throws IOException {
  int r = myStorage.createNextRecord();
  AbstractStorage.StorageDataOutput s = myStorage.writeStream(r, true);
  for (int i = 0; i < size; i++) {
    s.writeInt(r);
  }
  s.close();
  return r;
}
项目:tools-idea    文件:LocalHistoryStorageTest.java   
private int createRecord(int size) throws IOException {
  int r = myStorage.createNextRecord();
  AbstractStorage.StorageDataOutput s = myStorage.writeStream(r, true);
  for (int i = 0; i < size; i++) {
    s.writeInt(r);
  }
  s.close();
  return r;
}
项目:consulo    文件:LocalHistoryStorageTest.java   
private int createRecord(int size) throws IOException {
  int r = myStorage.createNextRecord();
  AbstractStorage.StorageDataOutput s = myStorage.writeStream(r, true);
  for (int i = 0; i < size; i++) {
    s.writeInt(r);
  }
  s.close();
  return r;
}