Examples of SafeFileOutputStream


Examples of com.intellij.util.io.SafeFileOutputStream

                try {
                    serializer.setProperty("http://xmlpull.org/v1/doc/properties.html#serializer-indentation", "  ");
                } catch (Exception e) {
                    // not recognized
                }
                serializer.setOutput(os = new SafeFileOutputStream(file), myCharset.name());
                saveHistory(serializer);
            } catch (Exception ex) {
                LOG.error(ex);
            } finally {
                try {
View Full Code Here

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
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.