public class VehicleModelAssetUtils
extends java.lang.Object
Constructor and Description |
---|
VehicleModelAssetUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
copyAssetToFile(java.io.File f) |
static java.io.InputStream |
getAssetStream(java.io.File f)
Get the input stream for an APK asset given its "atak/tools" counterpart
|
static byte[] |
readAssetBytes(java.io.File f)
Read asset file bytes
|
static org.json.JSONObject |
readFileJSON(java.io.File f,
boolean asset) |
static java.lang.String |
readFileString(java.io.File f,
boolean asset)
Read file to string
|
public static java.io.InputStream getAssetStream(java.io.File f)
f
- File under "atak/tools" directorypublic static byte[] readAssetBytes(java.io.File f)
f
- File under "atak/tools"public static java.lang.String readFileString(java.io.File f, boolean asset)
f
- Fileasset
- True if assetpublic static org.json.JSONObject readFileJSON(java.io.File f, boolean asset)
public static boolean copyAssetToFile(java.io.File f)