public final class FileHelper extends Object
Constructor and Description |
---|
FileHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
createNewFile(File file)
Create a new file.
|
static File |
createTempDir()
Create a temporary directory.
|
static void |
delete(File file)
Delete a file and raise an exception if unsuccessful.
|
static void |
deleteQuietly(File file)
Delete a file ignoring failures.
|
static void |
mkdirs(File file)
Create a directory hierarchy, raise an exception in case of failure.
|
static void |
mkdirsQuietly(File file)
Create a directory hierarchy, ignore failures.
|
public static final void delete(File file) throws IOException
file
- file to deleteIOException
public static final void deleteQuietly(File file)
file
- file to deletepublic static final void mkdirs(File file) throws IOException
file
- child file or directoryIOException
public static final void mkdirsQuietly(File file)
file
- child file or directorypublic static final File createTempDir() throws IOException
IOException
public static final void createNewFile(File file) throws IOException
file
- file to createIOException
Copyright © 2000–2024 Packwood Software. All rights reserved.