測試記錄協定工具

public class TestRecordProtoUtil
extends Object

java.lang.Object
com.android.tradefed.util.proto.TestRecordProtoUtil


用於從檔案讀取TestRecord原型的實用程式。

概括

公共構造函數

TestRecordProtoUtil ()

公共方法

static TestRecordProto.TestRecord readFromFile (File protoFile)

從檔案中讀取TestRecord並將其傳回。

static TestRecordProto.TestRecord readFromFile (File protoFile, boolean readDelimited)

從檔案中讀取TestRecord並將其傳回。

公共構造函數

測試記錄協定工具

public TestRecordProtoUtil ()

公共方法

從檔案讀取

public static TestRecordProto.TestRecord readFromFile (File protoFile)

從檔案中讀取TestRecord並將其傳回。

參數
protoFile File :包含記錄的ERROR(/File)

退貨
TestRecordProto.TestRecord從該檔案建立的TestRecord

投擲
無效協定緩衝區異常

從檔案讀取

public static TestRecordProto.TestRecord readFromFile (File protoFile, 
                boolean readDelimited)

從檔案中讀取TestRecord並將其傳回。

參數
protoFile File :包含記錄的ERROR(/File)

readDelimited boolean :如果原始檔案採用分隔格式,則為 True。如果檔案是預設格式,則為 False。

退貨
TestRecordProto.TestRecord

投擲
無效協定緩衝區異常