TestRecordProtoUtil
public class TestRecordProtoUtil
extends Object
java.lang.Object |
↳ | com.android.tradefed.util.proto.TestRecordProtoUtil |
Utilitaire pour lire le prototype TestRecord
à partir d'un fichier.
Résumé
Méthodes publiques |
---|
static TestRecordProto.TestRecord | readFromFile (File protoFile) Lisez TestRecord à partir d'un fichier et renvoyez-le. |
static TestRecordProto.TestRecord | readFromFile (File protoFile, boolean readDelimited) Lisez TestRecord à partir d'un fichier et renvoyez-le. |
Constructeurs publics
TestRecordProtoUtil
public TestRecordProtoUtil ()
Méthodes publiques
lire à partir du fichier
public static TestRecordProto.TestRecord readFromFile (File protoFile)
Lisez TestRecord
à partir d'un fichier et renvoyez-le.
Paramètres |
---|
protoFile | File : L' ERROR(/File) contenant l'enregistrement |
Retour |
---|
TestRecordProto.TestRecord | un TestRecord créé à partir du fichier. |
Jetés |
---|
| InvalidProtocolBufferException |
lire à partir du fichier
public static TestRecordProto.TestRecord readFromFile (File protoFile,
boolean readDelimited)
Lisez TestRecord
à partir d'un fichier et renvoyez-le.
Paramètres |
---|
protoFile | File : L' ERROR(/File) contenant l'enregistrement |
readDelimited | boolean : True si le fichier proto au format délimité. False si le fichier est au format par défaut. |
Retour |
---|
TestRecordProto.TestRecord | |
Jetés |
---|
| InvalidProtocolBufferException |