TestRecordProtoUtil

public class TestRecordProtoUtil
extends Object

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


Utility to read the TestRecord proto from a file.

Summary

Public constructors

TestRecordProtoUtil()

Public methods

static TestRecordProto.TestRecord readFromFile(File protoFile)

Read TestRecord from a file and return it.

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

Read TestRecord from a file and return it.

Public constructors

TestRecordProtoUtil

public TestRecordProtoUtil ()

Public methods

readFromFile

public static TestRecordProto.TestRecord readFromFile (File protoFile)

Read TestRecord from a file and return it.

Parameters
protoFile File: The ERROR(/File) containing the record

Returns
TestRecordProto.TestRecord a TestRecord created from the file.

Throws
InvalidProtocolBufferException

readFromFile

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

Read TestRecord from a file and return it.

Parameters
protoFile File: The ERROR(/File) containing the record

readDelimited boolean: True if the proto file in delimited format. False if the file is default format.

Returns
TestRecordProto.TestRecord

Throws
InvalidProtocolBufferException