Searched refs:Closer (Results 1 – 14 of 14) sorted by relevance
53 Closer closer = Closer.create(); in testCreate()58 assertTrue(closer.suppressor instanceof Closer.LoggingSuppressor); in testCreate()60 assertTrue(closer.suppressor instanceof Closer.SuppressingSuppressor); in testCreate()65 Closer closer = new Closer(suppressor); in testNoExceptionsThrown()85 Closer closer = new Closer(suppressor); in testExceptionThrown_fromTryBlock()111 Closer closer = new Closer(suppressor); in testExceptionThrown_whenCreatingCloseables()138 Closer closer = new Closer(suppressor); in testExceptionThrown_whileClosingLastCloseable()159 Closer closer = new Closer(suppressor); in testExceptionThrown_whileClosingFirstCloseable()180 Closer closer = new Closer(suppressor); in testCloseExceptionsSuppressed_whenExceptionThrownFromTryBlock()211 Closer closer = new Closer(suppressor); in testCloseExceptionsSuppressed_whenExceptionThrownClosingFirstCloseable()[all …]
87 Closer closer = Closer.create(); in testReadFile_withCorrectSize()102 Closer closer = Closer.create(); in testReadFile_withSmallerSize()117 Closer closer = Closer.create(); in testReadFile_withLargerSize()132 Closer closer = Closer.create(); in testReadFile_withSizeZero()
254 if (!Closer.SuppressingSuppressor.isAvailable()) { in testCopyExceptions()
330 if (!Closer.SuppressingSuppressor.isAvailable()) { in testCopyExceptions()
122 Closer closer = Closer.create(); in copyTo()142 Closer closer = Closer.create(); in copyTo()160 Closer closer = Closer.create(); in read()181 Closer closer = Closer.create(); in readFirstLine()203 Closer closer = Closer.create(); in readLines()237 Closer closer = Closer.create(); in readLines()256 Closer closer = Closer.create(); in isEmpty()
138 Closer closer = Closer.create(); in isEmpty()165 Closer closer = Closer.create(); in size()175 closer = Closer.create(); in size()232 Closer closer = Closer.create(); in copyTo()252 Closer closer = Closer.create(); in copyTo()270 Closer closer = Closer.create(); in read()294 Closer closer = Closer.create(); in read()329 Closer closer = Closer.create(); in contentEquals()474 Closer closer = Closer.create(); in sliceStream()
108 Closer closer = Closer.create(); in write()142 Closer closer = Closer.create(); in writeLines()166 Closer closer = Closer.create(); in writeFrom()
114 Closer closer = Closer.create(); in write()136 Closer closer = Closer.create(); in writeFrom()
90 public final class Closer implements Closeable { class102 public static Closer create() { in create()103 return new Closer(SUPPRESSOR); in create()112 @VisibleForTesting Closer(Suppressor suppressor) { in Closer() method in Closer
277 Closer closer = Closer.create(); in readLines()354 Closer closer = Closer.create(); in readLines()
140 Closer closer = Closer.create(); in read()869 Closer closer = Closer.create(); in map()883 Closer closer = Closer.create(); in map()
858 Closer closer = Closer.create(); in readBytes()
29 struct Closer { struct30 ~Closer() { in ~Closer() argument35 static Closer c;
25 import com.google.common.io.Closer;437 Closer closer = Closer.create(); in writeSelfReferencingJarFile()