PropertyChanger

public abstract class PropertyChanger
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.PropertyChanger


用於變更 (或新增) Android 屬性檔案中項目的公用程式類別

摘要

公用建構函式

PropertyChanger()

公用方法

static File changeProperties(File original, Map<String, String> properties)

公用函式,用於變更 (或新增) Android 屬性檔案中的項目 原始屬性檔案中的屬性值會經過修改。

公用建構函式

PropertyChanger

public PropertyChanger ()

公用方法

changeProperties

public static File changeProperties (File original, 
                Map<String, String> properties)

公用函式,用於變更 (或新增) Android 屬性檔案中的項目。原始屬性檔案中的屬性值會遭到修改。系統會附加新項目。呼叫端有責任妥善回收原始和修改過的暫時檔案。

參數
original File:原始屬性檔案

properties Map:要變更或新增的屬性

傳回
File 新屬性檔案的路徑

擲回
IOException