AcloudConfigParser
public class AcloudConfigParser
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.cloud.AcloudConfigParser |
解析Acloud配置的輔助類(用於啟動Cloud設備實例)。
概要
嵌套類 | |
---|---|
enum | AcloudConfigParser.AcloudKeys 可以從配置中搜索的密鑰集。 |
公開方法 | |
---|---|
String | getValueForKey ( AcloudConfigParser.AcloudKeys key) 返回與Acloud密鑰關聯的值,如果沒有值,則返回null。 |
static AcloudConfigParser | parseConfig (File configFile) 解析acloud配置文件並返回一個已填充的 |
公開方法
getValueForKey
public String getValueForKey (AcloudConfigParser.AcloudKeys key)
返回與Acloud密鑰關聯的值,如果沒有值,則返回null。
參量 | |
---|---|
key | AcloudConfigParser.AcloudKeys |
退貨 | |
---|---|
String |
parseConfig
public static AcloudConfigParser parseConfig (File configFile)
解析acloud配置文件並返回一個已填充的AcloudConfigParser
,可以查詢其值。發生錯誤時返回null。
參量 | |
---|---|
configFile | File |
退貨 | |
---|---|
AcloudConfigParser |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2019-10-02 UTC.