public final class FileUtil extends Object
| Constructor and Description |
|---|
FileUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isXMLFileName(String name)
Checks if a filename has an XML extension.
|
static byte[] |
load(File file)
Loads the entire contents of a File object into a byte array.
|
static byte[] |
load(FileInputStream fin)
Loads the entire contents of a FileInputStream into a byte array.
|
static byte[] |
load(String fileName)
Loads the entire contents of a file into a byte array.
|
public static final boolean isXMLFileName(String name)
name - the filename to checkpublic static final byte[] load(File file)
file - the File object to loadpublic static final byte[] load(FileInputStream fin)
fin - the FileInputStream to read frompublic static final byte[] load(String fileName)
fileName - the path to the file to load