public final class CreateFileUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
newDirectories(Collection<File> directories)
Creates the directories.
|
static boolean |
newDirectoriesQuietly(Collection<File> directories)
Creates the directories.
|
static boolean |
newDirectory(File dir)
Creates a new directory.
|
static boolean |
newDirectoryQuietly(File dir)
Creates a new directory quietly.
|
static boolean |
newFile(File file)
Creates an empty file if the File does not exists otherwise it lets the file as it is.
|
static boolean |
newFileQuietly(File file)
Creates an empty file quietly if the File does not exists otherwise it lets the file as it
is.
|
static boolean |
newFiles(Collection<File> files)
Creates all files contained in the collection as empty files if the files does not exists
otherwise it lets the files as they are.
|
static void |
newParentDirectories(File file)
Creates the parent directories from the given file.
|
public static boolean newDirectories(Collection<File> directories) throws DirectoryAllreadyExistsException
directories - the directoriesDirectoryAllreadyExistsException - the directory allready exists exceptionpublic static boolean newDirectoriesQuietly(Collection<File> directories)
directories - the directoriespublic static boolean newDirectory(File dir) throws DirectoryAllreadyExistsException
dir - The directory to create.DirectoryAllreadyExistsException - Thrown if the directory all ready exists.public static boolean newDirectoryQuietly(File dir)
dir - The directory to create.public static boolean newFile(File file) throws IOException
file - the file.IOException - Signals that an I/O exception has occurred.public static boolean newFileQuietly(File file)
file - the file.public static boolean newFiles(Collection<File> files) throws IOException
files - the Collection with the File objects.IOException - Signals that an I/O exception has occurred.public static void newParentDirectories(File file)
file - the fileCopyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.