public class FileUtils
extends java.lang.Object
Constructor and Description |
---|
FileUtils() |
Modifier and Type | Method and Description |
---|---|
static java.io.File |
getAbsoluteFile(java.lang.String path)
Returns a new file constructed using the absolute path of
path . |
static java.io.BufferedOutputStream |
open(java.lang.String path)
Opens file at
path to output. |
public static java.io.BufferedOutputStream open(java.lang.String path) throws java.io.FileNotFoundException
path
to output. If any directories on path
do
not exist, they will be created. The file will be readable and writable to
all.java.io.FileNotFoundException
public static java.io.File getAbsoluteFile(java.lang.String path)
path
.
Unlike File.getAbsoluteFile()
, default parent is "java.io.tmpdir"
instead of "user.dir".
If any directories on path
do not exist, they will be created.