|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.appserv.management.util.misc.SafeSave
public final class SafeSave
Utilities for performing a safe save involving a temp file
Method Summary | |
---|---|
static File |
getTempFile(File baseFile)
Reads a line, outputting an optional prompt first. |
static void |
replaceWithNew(File origFile,
File newFile)
Replace the original file with the new file in a manner which will not result in data loss, with the worst risk being that the original file will be left with a different name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static File getTempFile(File baseFile) throws IOException
IOException
public static void replaceWithNew(File origFile, File newFile) throws IOException
IOException
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.