TestRecordProtoUtil

public class TestRecordProtoUtil
extends Object

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


Utilitaire permettant de lire le proto TestRecord à partir d'un fichier.

Résumé

Constructeurs publics

TestRecordProtoUtil()

Méthodes publiques

static TestRecordProto.TestRecord readFromFile(File protoFile)

Lire TestRecord à partir d'un fichier et le renvoyer.

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

Lire TestRecord à partir d'un fichier et le renvoyer.

Constructeurs publics

TestRecordProtoUtil

public TestRecordProtoUtil ()

Méthodes publiques

readFromFile

public static TestRecordProto.TestRecord readFromFile (File protoFile)

Lire TestRecord à partir d'un fichier et le renvoyer.

Paramètres
protoFile File: ERROR(/File) contenant l'enregistrement

Renvoie
TestRecordProto.TestRecord un TestRecord créé à partir du fichier.

Génère
InvalidProtocolBufferException

readFromFile

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

Lire TestRecord à partir d'un fichier et le renvoyer.

Paramètres
protoFile File: ERROR(/File) contenant l'enregistrement

readDelimited boolean : "True" si le fichier proto est au format délimité. "False" si le fichier est au format par défaut.

Renvoie
TestRecordProto.TestRecord

Génère
InvalidProtocolBufferException