TestRecordProtoUtil

public class TestRecordProtoUtil
extends Object

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


Utilitaire pour 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

lireDeFichier

public static TestRecordProto.TestRecord readFromFile (File protoFile)

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

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

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

Lance
InvalidProtocolBufferExceptionInvalidProtocolBufferException

lireDeFichier

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

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

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

readDelimited boolean : Vrai si le fichier proto est au format délimité. Faux si le fichier est au format par défaut.

Retour
TestRecordProto.TestRecord

Lance
InvalidProtocolBufferExceptionInvalidProtocolBufferException