TestRecordProtoUtil

public class TestRecordProtoUtil
extends Object

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


用于从文件读取 TestRecord proto 的实用程序。

摘要

公共构造函数

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