Class FileUtils
java.lang.Object
com.android.dex.util.FileUtils
File I/O utilities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasArchiveSuffix(String fileName) Returns true iffileNamenames a .zip, .jar, or .apk.static byte[]Reads the given file, translatingIOExceptionto aRuntimeExceptionof some sort.static byte[]Reads the named file, translatingIOExceptionto aRuntimeExceptionof some sort.
-
Method Details
-
readFile
Reads the named file, translatingIOExceptionto aRuntimeExceptionof some sort.- Parameters:
fileName-non-null;name of the file to read- Returns:
non-null;contents of the file
-
readFile
Reads the given file, translatingIOExceptionto aRuntimeExceptionof some sort.- Parameters:
file-non-null;the file to read- Returns:
non-null;contents of the file
-
hasArchiveSuffix
Returns true iffileNamenames a .zip, .jar, or .apk.
-