Examples of SafeFileInputStream


Examples of org.eclipse.core.internal.localstore.SafeFileInputStream

    }
    return null;
  }

  public Object read(IPath location, IPath tempLocation) throws IOException {
    SafeFileInputStream file = new SafeFileInputStream(location.toOSString(), tempLocation.toOSString());
    try {
      return read(file);
    } finally {
      file.close();
    }
  }
View Full Code Here

Examples of org.eclipse.core.internal.localstore.SafeFileInputStream

    java.io.File sourceFile = new java.io.File(sourceLocation.toOSString());
    java.io.File tempFile = new java.io.File(tempLocation.toOSString());
    if (!sourceFile.exists() && !tempFile.exists())
      return;
    try {
      DataInputStream input = new DataInputStream(new SafeFileInputStream(sourceLocation.toOSString(), tempLocation.toOSString()));
      try {
        MarkerReader reader = new MarkerReader(workspace);
        reader.read(input, generateDeltas);
      } finally {
        input.close();
View Full Code Here

Examples of org.eclipse.core.internal.localstore.SafeFileInputStream

    IPath sourceLocation = workspace.getMetaArea().getSyncInfoLocationFor(resource);
    IPath tempLocation = workspace.getMetaArea().getBackupLocationFor(sourceLocation);
    if (!sourceLocation.toFile().exists() && !tempLocation.toFile().exists())
      return;
    try {
      DataInputStream input = new DataInputStream(new SafeFileInputStream(sourceLocation.toOSString(), tempLocation.toOSString()));
      try {
        SyncInfoReader reader = new SyncInfoReader(workspace, this);
        reader.readSyncInfo(input);
      } finally {
        input.close();
View Full Code Here

Examples of org.eclipse.core.internal.localstore.SafeFileInputStream

  /**
   * Reads and returns a project description stored at the given location, or
   * temporary location.
   */
  public ProjectDescription read(IPath location, IPath tempLocation) throws IOException {
    SafeFileInputStream file = new SafeFileInputStream(location.toOSString(), tempLocation.toOSString());
    try {
      return read(new InputSource(file));
    } finally {
      file.close();
    }
  }
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.