|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.common.util.TempFileManager
public class TempFileManager
Description: An utility class created to lead with temp files.
Constructor Summary | |
---|---|
TempFileManager()
|
Method Summary | |
---|---|
static java.io.File |
createTempFile()
Creates a temp file with the format mygrid???.tmp in the default temp dir. |
static java.io.File |
createTempFile(java.lang.String prefix,
java.lang.String sufix)
Creates a temp file with the format prefix???sufix in the default temp dir. |
static java.io.File |
createTempFile(java.lang.String prefix,
java.lang.String sufix,
java.io.File dir)
Creates a temp file with the format prefix???sufix in a specified dir. |
static java.io.File |
createTempFileWithBogusData(java.lang.String prefix,
java.lang.String sufix,
java.io.File dir,
int nbytes)
Creates a temp file with the format prefix???sufix in a specified dir with a specified amount of bogus data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TempFileManager()
Method Detail |
---|
public static java.io.File createTempFile() throws java.io.IOException
java.io.IOException
- If the temp file could not be created.public static java.io.File createTempFile(java.lang.String prefix, java.lang.String sufix) throws java.io.IOException
prefix
- A prefix for the temp file.sufix
- A sufix for the temp file.
java.io.IOException
- If the temp file could no be created.public static java.io.File createTempFile(java.lang.String prefix, java.lang.String sufix, java.io.File dir) throws java.io.IOException
prefix
- A prefix for the temp file.sufix
- A sufix for the temp file.dir
- The temp file directory
java.io.IOException
- If the temp file could no be created.public static java.io.File createTempFileWithBogusData(java.lang.String prefix, java.lang.String sufix, java.io.File dir, int nbytes) throws java.io.IOException
prefix
- A prefix for the temp file.sufix
- A sufix for the temp file.dir
- The temp file directorynbytes
- The amount of bogus data to be wrote on the temp file (in
bytes).
java.io.IOException
- If the temp file could no be created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |