Package org.eclipse.core.internal.localstore

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


  /**
   * The parameter tempLocation is a location to place our temp file (copy of the target one)
   * to be used in case we could not successfully write the new file.
   */
  public void write(Object object, IPath location, IPath tempLocation) throws IOException {
    SafeFileOutputStream file = null;
    String tempPath = tempLocation == null ? null : tempLocation.toOSString();
    try {
      file = new SafeFileOutputStream(location.toOSString(), tempPath);
      write(object, file);
    } finally {
      if (file != null)
        file.close();
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.core.internal.localstore.SafeFileOutputStream

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.