public class FileUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FileUtil.NamedFileChannel |
| Constructor and Description |
|---|
FileUtil() |
| Modifier and Type | Method and Description |
|---|---|
static FileUtil.NamedFileChannel |
createNewFile(Path dir,
String prefix,
String suffix)
Creates a new file and opens it for reading and writing.
|
static FileChannel |
createTempFile(Path dir,
String prefix,
String suffix)
Create a temporary file that will be removed when it is closed.
|
static FileChannel |
createTempFile(String prefix,
String suffix)
Create a temporary file that will be removed when it is closed, in the
tmpdir location.
|
public static final Path TMPDIR
public static FileChannel createTempFile(Path dir, String prefix, String suffix) throws IOException
IOExceptionpublic static FileChannel createTempFile(String prefix, String suffix) throws IOException
IOExceptionpublic static FileUtil.NamedFileChannel createNewFile(Path dir, String prefix, String suffix) throws IOException
IOExceptionCopyright © 2016. All rights reserved.