TestRecordProtoUtil

public class TestRecordProtoUtil
extends Object

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


Utilitas untuk membaca proto TestRecord dari file.

Ringkasan

Konstruktor publik

TestRecordProtoUtil()

Metode publik

static TestRecordProto.TestRecord readFromFile(File protoFile)

Baca TestRecord dari file dan tampilkan.

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

Baca TestRecord dari file dan tampilkan.

Konstruktor publik

TestRecordProtoUtil

public TestRecordProtoUtil ()

Metode publik

readFromFile

public static TestRecordProto.TestRecord readFromFile (File protoFile)

Baca TestRecord dari file dan tampilkan.

Parameter
protoFile File: ERROR(/File) yang berisi data

Hasil
TestRecordProto.TestRecord TestRecord yang dibuat dari file.

Menampilkan
InvalidProtocolBufferException

readFromFile

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

Baca TestRecord dari file dan tampilkan.

Parameter
protoFile File: ERROR(/File) yang berisi data

readDelimited boolean: Benar jika file proto dalam format yang dipisahkan. Salah jika file adalah format default.

Hasil
TestRecordProto.TestRecord

Menampilkan
InvalidProtocolBufferException