public class ObbScanner
extends Object
| java.lang.Object | |
| android.content.res.ObbScanner | |
用于扫描不透明二进制Blob(OBB)文件的类。 使用它通过ObbInfo获取有关OBB文件在程序中使用的ObbInfo 。
公共方法(Public methods) |
|
|---|---|
static ObbInfo |
getObbInfo(String filePath) 扫描文件以获取OBB信息。 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
ObbInfo getObbInfo (String filePath)
扫描文件以获取OBB信息。
| 参数(Parameters) | |
|---|---|
filePath |
String: path to the OBB file to be scanned. |
| 返回(Returns) | |
|---|---|
ObbInfo |
ObbInfo object information corresponding to the file path |
| 抛出异常(Throws) | |
|---|---|
IllegalArgumentException |
if the OBB file couldn't be found |
IOException |
if the OBB file couldn't be read |