|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.vdheide.utils.File
Various methods for file manipulation and access.
Method Summary | |
static void |
copy(java.lang.String source,
java.lang.String dest)
Copy from source to destination |
static java.io.File |
getTempFile(java.lang.String id,
java.io.File near)
Create a uniquely named temporary file in the form XXXnnnnn.tmp. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void copy(java.lang.String source, java.lang.String dest) throws java.io.IOException
source
- Source filedest
- Destination file (no directory!)
java.io.IOException
public static java.io.File getTempFile(java.lang.String id, java.io.File near) throws java.io.IOException
id
- a string prepended on the file generated. Should you fail to
delete it later, the id will help identify where it came from.
null and "" also allowed.near
- Directory to create file in. Can also be a file, then
temporary file is created in same directory.
If null, one of these locations is used (sorted by preference):
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |