TestRecordProtoUtil

public class TestRecordProtoUtil
extends Object

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


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

摘要

公共构造函数

TestRecordProtoUtil()

公共方法

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

从文件中读取 TestRecord 并返回。

static TestRecordProto.TestRecord readFromFile(File protoFile)

从文件中读取 TestRecord 并返回。

公共构造函数

TestRecordProtoUtil

public TestRecordProtoUtil ()

公共方法

readFromFile

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

从文件中读取 TestRecord 并返回。

参数
protoFile File:包含记录的 File

readDelimited boolean:如果 proto 文件采用分隔格式,则为 True。如果文件是默认格式,则为 False。

返回
TestRecordProto.TestRecord

抛出
InvalidProtocolBufferException
IOException

readFromFile

public static TestRecordProto.TestRecord readFromFile (File protoFile)

从文件中读取 TestRecord 并返回。

参数
protoFile File:包含记录的 File

返回
TestRecordProto.TestRecord 从文件创建的 TestRecord

抛出
InvalidProtocolBufferException
IOException