|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectpatterntesting.runtime.io.FileHelper
public final class FileHelper
The Class FileHelper.
| Method Summary | |
|---|---|
static File |
createTmpdir()
Creates a directory in the temp directory. |
static File |
createTmpdir(String prefix,
String suffix)
Creates a directory in the temp directory. |
static boolean |
equals(File f1,
File f2)
Comparing two files is not so easy as it seems to be. |
static File |
getHomeDir()
Gets the home dir. |
static File |
getTmpdir()
Gets the tmpdir. |
static File |
getTmpdir(File file)
Gets the tmpdir. |
static File |
getTmpdir(String filename)
Gets the tmpdir. |
static File |
normalize(File file)
Normalizes a file, analogous to FilenameUtils.normalize(String). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static File getTmpdir()
public static File getTmpdir(File file)
file - the file
public static File getTmpdir(String filename)
filename - the filename
public static File createTmpdir()
throws IOException
IOException - Signals that an I/O exception has occurred.
public static File createTmpdir(String prefix,
String suffix)
throws IOException
prefix - the prefixsuffix - the suffix
IOException - Signals that an I/O exception has occurred.public static File getHomeDir()
public static File normalize(File file)
FilenameUtils.normalize(String).
But before we normalize it we try to ask to OS for the canonical
path for it.
file - the file
public static boolean equals(File f1,
File f2)
f1 - file 1f2 - file 2
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||