public class FilesUtil
extends java.lang.Object
Constructor and Description |
---|
FilesUtil() |
Modifier and Type | Method and Description |
---|---|
static java.io.File[] |
expand(java.io.File file)
Expand a file that could contain wild cards.
|
static java.io.File[] |
expand(java.io.File[] files)
Expand an array of files which could contain wildcards into
an actual array of files.
|
static void |
verifyReadable(java.io.File[] files)
Verify that all files are readable.
|
static void |
verifyWrite(java.io.File file)
Verify that a file is writeable.
|
static void |
verifyWrite(java.io.File[] files)
Verify that files are writeable.
|
public static java.io.File[] expand(java.io.File file) throws java.io.IOException
file
- The file.java.io.IOException
public static java.io.File[] expand(java.io.File[] files) throws java.io.IOException
files
- The in files.java.io.IOException
public static void verifyReadable(java.io.File[] files) throws java.lang.RuntimeException
files
- The files.java.lang.RuntimeException
public static void verifyWrite(java.io.File file) throws java.lang.RuntimeException
file
- A file.java.lang.RuntimeException
public static void verifyWrite(java.io.File[] files) throws java.lang.RuntimeException
files
- The files.java.lang.RuntimeException