|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dex.util.FileUtils
public final class FileUtils
File I/O utilities.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static byte[] readFile(String fileName)
IOException to a
RuntimeException of some sort.
fileName - non-null; name of the file to read
non-null; contents of the filepublic static byte[] readFile(File file)
IOException to a
RuntimeException of some sort.
file - non-null; the file to read
non-null; contents of the filepublic static boolean hasArchiveSuffix(String fileName)
fileName names a .zip, .jar, or .apk.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||