TestRecordProtoUtil

public class TestRecordProtoUtil
extends Object

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


用於從檔案讀取 TestRecord protobuf 的公用程式。

摘要

公用建構函式

TestRecordProtoUtil()

公用方法

static TestRecordProto.TestRecord readFromFile(File protoFile)

從檔案讀取 TestRecord 並傳回。

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

從檔案讀取 TestRecord 並傳回。

公用建構函式

TestRecordProtoUtil

public TestRecordProtoUtil ()

公用方法

readFromFile

public static TestRecordProto.TestRecord readFromFile (File protoFile)

從檔案讀取並傳回 TestRecord

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

傳回
TestRecordProto.TestRecord 從檔案建立的 TestRecord

擲回
InvalidProtocolBufferException

readFromFile

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

從檔案讀取並傳回 TestRecord

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

readDelimited boolean:如果 proto 檔案為分隔格式,則為 True。如果檔案為預設格式,則為 False。

傳回
TestRecordProto.TestRecord

擲回
InvalidProtocolBufferException