Searched refs:closer (Results 1 – 7 of 7) sorted by relevance
114 Closer closer = Closer.create(); in writeZip() local116 ZFile toMerge = closer.register(new ZFile(zip)); in writeZip()143 throw closer.rethrow(t); in writeZip()145 closer.close(); in writeZip()155 Closer closer = Closer.create(); in writeFile() local157 FileInputStream inputFileStream = closer.register(new FileInputStream(inputFile)); in writeFile()160 throw closer.rethrow(e, IOException.class); in writeFile()162 throw closer.rethrow(t); in writeFile()164 closer.close(); in writeFile()
82 try (Closer closer = Closer.create()) { in manifestGenerationOnHalfWrittenFile() argument83 ZFile zf = closer.register(new ZFile(zip)); in manifestGenerationOnHalfWrittenFile()118 try (Closer closer = Closer.create()) { in manifestGenerationOnExistingFile() argument119 ZFile zf = closer.register(new ZFile(zip)); in manifestGenerationOnExistingFile()156 try (Closer closer = Closer.create()) { in manifestGenerationOnIncrementalNoChanges() argument157 ZFile zf = closer.register(new ZFile(zip)); in manifestGenerationOnIncrementalNoChanges()173 zf = closer.register(new ZFile(zip)); in manifestGenerationOnIncrementalNoChanges()
211 Closer.create().use { closer -> in <lambda>() method212 val fos = closer.register(FileOutputStream(to)) in <lambda>()213 val bos = closer.register(BufferedOutputStream(fos)) in <lambda>()214 val zos = closer.register(ZipOutputStream(bos)) in <lambda>()216 val fis = closer.register(FileInputStream(from)) in <lambda>()217 val bis = closer.register(BufferedInputStream(fis)) in <lambda>()218 val zis = closer.register(ZipInputStream(bis)) in <lambda>()
81 Closer closer = Closer.create(); in close() local82 closer.register(processedSource); in close()83 closer.register(rawSource); in close()84 closer.close(); in close()
2467 try (Closer closer = Closer.create()) { in addAllRecursively() argument2468 FileInputStream fileInput = closer.register(new FileInputStream(file)); in addAllRecursively()2479 try (Closer closer = Closer.create()) { in addAllRecursively() argument2482 stream = closer.register(new ByteArrayInputStream(new byte[0])); in addAllRecursively()2485 stream = closer.register(new FileInputStream(f)); in addAllRecursively()
103 try (Closer closer = Closer.create()) { in mergeZipWithDeferredCrc() argument104 ZFile fooZf = closer.register(new ZFile(foo)); in mergeZipWithDeferredCrc()111 ZFile merged = closer.register(new ZFile(new File(mTemporaryFolder.getRoot(), "bar"))); in mergeZipWithDeferredCrc()141 try (Closer closer = Closer.create()) { in mergeZipKeepsDeflatedAndStored() argument142 ZFile fooZf = closer.register(new ZFile(foo)); in mergeZipKeepsDeflatedAndStored()152 ZFile merged = closer.register(new ZFile(new File(mTemporaryFolder.getRoot(), "bar"))); in mergeZipKeepsDeflatedAndStored()
1112 try (Closer closer = Closer.create()) { in zipFileWithEocdMarkerInComment() argument1113 ZipOutputStream zos = closer.register( in zipFileWithEocdMarkerInComment()1120 ZFile zf = closer.register(new ZFile(zipFile)); in zipFileWithEocdMarkerInComment()1134 try (Closer closer = Closer.create()) { in zipFileWithEocdMarkerInFileName() argument1135 ZipOutputStream zos = closer.register( in zipFileWithEocdMarkerInFileName()1141 ZFile zf = closer.register(new ZFile(zipFile)); in zipFileWithEocdMarkerInFileName()1154 try (Closer closer = Closer.create()) { in zipFileWithEocdMarkerInFileContents() argument1155 ZipOutputStream zos = closer.register( in zipFileWithEocdMarkerInFileContents()1166 ZFile zf = closer.register(new ZFile(zipFile)); in zipFileWithEocdMarkerInFileContents()