|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccs.utils.TempFile
public class TempFile
A class for finding suitable names for temp files. Java2 provides an inbuilt facility for this, but creates an empty file too, which we don't want, so we delete it before returning the name. The author is a little concerned about race conditions under these circumstances.
Method Summary | |
---|---|
static java.io.File |
get()
Returns a non-existent temp file in the Checkpoint temp folder. |
static java.io.File |
get(java.io.File folder)
Returns a non-existent temp file in the specified folder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.io.File get() throws java.io.IOException
java.io.IOException
- if the attempt fails.public static java.io.File get(java.io.File folder) throws java.io.IOException
java.io.IOException
- if the attempt fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |