public class FileUtils extends Object
| Constructor and Description |
|---|
FileUtils(String homeDir,
String defaultDir,
Hashtable env) |
| Modifier and Type | Method and Description |
|---|---|
static File |
createTempDirectory() |
static File |
createTempDirectory(String pathPrefix) |
boolean |
equals(Object obj) |
File |
getDirectory() |
File |
getDirectory(String path) |
File |
getDirectory(String path,
boolean create) |
File |
getFile(String path) |
File |
getFile(String path,
boolean validate) |
void |
setDirectory(File dir) |
public File getDirectory(String path) throws IOException
IOExceptionpublic File getDirectory(String path, boolean create) throws IOException
IOExceptionpublic File getDirectory()
public void setDirectory(File dir)
public File getFile(String path) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionpublic File getFile(String path, boolean validate) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionpublic static File createTempDirectory(String pathPrefix) throws IOException
IOExceptionpublic static File createTempDirectory() throws IOException
IOExceptionCopyright © 1999-2014 The Apache Software Foundation. All Rights Reserved.