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