Stay organized with collections
Save and categorize content based on your preferences.
ObbScanner
open class ObbScanner
Class to scan Opaque Binary Blob (OBB) files. Use this to get information about an OBB file for use in a program via ObbInfo
.
Summary
Public methods |
open static ObbInfo! |
Scan a file for OBB information.
|
Public methods
getObbInfo
open static fun getObbInfo(filePath: String!): ObbInfo!
Scan a file for OBB information.
Parameters |
filePath |
String!: path to the OBB file to be scanned. |
Return |
ObbInfo! |
ObbInfo object information corresponding to the file path |
Exceptions |
java.lang.IllegalArgumentException |
if the OBB file couldn't be found |
java.io.IOException |
if the OBB file couldn't be read |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ObbScanner\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nObbScanner\n==========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/content/res/ObbScanner \"View this page in Java\") \n\n```\nopen class ObbScanner\n```\n\n|---|-------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.content.res.ObbScanner](#) |\n\nClass to scan Opaque Binary Blob (OBB) files. Use this to get information about an OBB file for use in a program via [ObbInfo](/reference/kotlin/android/content/res/ObbInfo).\n\nSummary\n-------\n\n| Public methods ||\n|-----------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open static [ObbInfo](/reference/kotlin/android/content/res/ObbInfo)! | [getObbInfo](#getObbInfo(kotlin.String))`(`filePath:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Scan a file for OBB information. |\n\nPublic methods\n--------------\n\n### getObbInfo\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen static fun getObbInfo(filePath: String!): ObbInfo!\n```\n\nScan a file for OBB information.\n\n| Parameters ||\n|------------|------------------------------------------------------------------------------------------------------------------------|\n| `filePath` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: path to the OBB file to be scanned. |\n\n| Return ||\n|-----------------------------------------------------------|-----------------------------------------------------------|\n| [ObbInfo](/reference/kotlin/android/content/res/ObbInfo)! | ObbInfo object information corresponding to the file path |\n\n| Exceptions ||\n|--------------------------------------|-----------------------------------|\n| `java.lang.IllegalArgumentException` | if the OBB file couldn't be found |\n| `java.io.IOException` | if the OBB file couldn't be read |"]]