public final class FileUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
hasArchiveSuffix(String fileName)
Returns true if
fileName names a .zip, .jar, or .apk. |
static byte[] |
readFile(File file)
Reads the given file, translating
IOException to a
RuntimeException of some sort. |
static byte[] |
readFile(String fileName)
Reads the named file, translating
IOException to a
RuntimeException of some sort. |
public static byte[] readFile(String fileName)
IOException to a
RuntimeException of some sort.fileName - non-null; name of the file to readnon-null; contents of the filepublic static byte[] readFile(File file)
IOException to a
RuntimeException of some sort.file - non-null; the file to readnon-null; contents of the filepublic static boolean hasArchiveSuffix(String fileName)
fileName names a .zip, .jar, or .apk.Copyright © 2016. All Rights Reserved.