Searched refs:protoFile (Results 1 – 4 of 4) sorted by relevance
40 File protoFile = null; in testRead() local42 protoFile = dumpTestRecord(); in testRead()43 TestRecord record = TestRecordProtoUtil.readFromFile(protoFile); in testRead()47 FileUtil.deleteFile(protoFile); in testRead()55 File protoFile = FileUtil.createTempFile("test-proto", "." + LogDataType.PB.getFileExt()); in dumpTestRecord() local57 try (OutputStream stream = new FileOutputStream(protoFile)) { in dumpTestRecord()59 return protoFile; in dumpTestRecord()
44 public static TestRecord readFromFile(File protoFile) throws IOException { in readFromFile() argument45 return readFromFile(protoFile, true); in readFromFile()56 public static TestRecord readFromFile(File protoFile, boolean readDelimited) in readFromFile() argument59 try (InputStream stream = new FileInputStream(protoFile)) { in readFromFile()
568 File protoFile = in prepareContext() local572 contextProto.writeDelimitedTo(new FileOutputStream(protoFile)); in prepareContext()573 return protoFile; in prepareContext()
219 public void processFileProto(File protoFile) throws IOException { in processFileProto() argument222 record = TestRecordProtoUtil.readFromFile(protoFile); in processFileProto()225 try (FileInputStreamSource protoFail = new FileInputStreamSource(protoFile, true)) { in processFileProto()