|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.driver.TemporaryFileManager
Provides temporary file management facility.
A temporary file with any presix and suffix can be created.
More than one manager can work together at same time.
| Constructor Summary | |
TemporaryFileManager()
Constructs a new manager. |
|
| Method Summary | |
void |
cleanupTemporaryFiles()
Deletes all temporary files created by this manager. |
java.io.File |
createTemporaryFile()
Creates a temporary file and returns its path name. |
java.io.File |
createTemporaryFile(java.lang.String suffix)
Creates a temporary file with a specified suffix and returns its path name. |
java.io.File |
createTemporaryFile(java.lang.String prefix,
java.lang.String suffix)
Creates a temporary file with a specified prefix and suffix and returns its path name. |
java.util.Collection |
getTemporaryFiles()
Returns a list of temporary files ever created by this manager. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TemporaryFileManager()
| Method Detail |
public void cleanupTemporaryFiles()
public java.io.File createTemporaryFile()
throws java.io.IOException
java.io.IOException - - failed to create a file.
public java.io.File createTemporaryFile(java.lang.String suffix)
throws java.io.IOException
suffix - a suffix.
java.io.IOException - - failed to create a file.
public java.io.File createTemporaryFile(java.lang.String prefix,
java.lang.String suffix)
throws java.lang.IllegalArgumentException,
java.io.IOException
prefix - a prefix.suffix - a suffix.
java.lang.IllegalArgumentException - - prefix length is short.
java.io.IOException - - failed to create a file.public java.util.Collection getTemporaryFiles()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||