public class FileUtls extends Object
| Constructor and Description |
|---|
FileUtls() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
downloadFile(String urlStr) |
static byte[] |
getFileData(String file)
When using on Android, this method should only be used for Android Oreo and newer
|
static byte[] |
getFileData(String filePath,
String fileName)
When using on Android, this method should only be used for Android Oreo and newer
|
public static byte[] getFileData(String file)
file - the path to the filepublic static byte[] getFileData(String filePath, String fileName)
filePath - the path to the filefileName - the name of the filepublic static byte[] downloadFile(@NonNull
String urlStr)