Home
last modified time | relevance | path

Searched refs:closeable (Results 1 – 17 of 17) sorted by relevance

/external/guava/guava/src/com/google/common/io/
DCloser.java123 public <C extends Closeable> C register(@Nullable C closeable) { in register() argument
124 if (closeable != null) { in register()
125 stack.addFirst(closeable); in register()
128 return closeable; in register()
211 Closeable closeable = stack.removeFirst(); in close() local
213 closeable.close(); in close()
218 suppressor.suppress(closeable, throwable, e); in close()
238 void suppress(Closeable closeable, Throwable thrown, Throwable suppressed); in suppress() argument
249 public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) { in suppress() argument
252 "Suppressing exception thrown when closing " + closeable, suppressed); in suppress()
[all …]
DCloseables.java73 public static void close(@Nullable Closeable closeable, in close() argument
75 if (closeable == null) { in close()
79 closeable.close(); in close()
108 public static void closeQuietly(@Nullable Closeable closeable) { in closeQuietly() argument
110 close(closeable, true); in closeQuietly()
/external/guava/guava-tests/test/com/google/common/io/
DCloseablesTest.java125 private void doClose(Closeable closeable, boolean swallowException) { in doClose() argument
126 doClose(closeable, swallowException, !swallowException); in doClose()
132 private void doClose(Closeable closeable, boolean swallowException, in doClose() argument
135 Closeables.close(closeable, swallowException); in doClose()
144 verify(closeable); in doClose()
DCloserTest.java388 public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) { in suppress() argument
389 suppressions.add(new Suppression(closeable, thrown, suppressed)); in suppress()
397 private final Closeable closeable; field in CloserTest.Suppression
401 private Suppression(Closeable closeable, Throwable thrown, Throwable suppressed) { in Suppression() argument
402 this.closeable = closeable; in Suppression()
411 return closeable.equals(other.closeable) in equals()
420 return Objects.hashCode(closeable, thrown, suppressed); in hashCode()
426 .add("closeable", closeable) in toString()
/external/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/
DUtil.java67 static void closeQuietly(/*Auto*/Closeable closeable) { in closeQuietly() argument
68 if (closeable != null) { in closeQuietly()
70 closeable.close(); in closeQuietly()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DCertBlacklist.java112 private static void closeQuietly(Closeable closeable) { in closeQuietly() argument
113 if (closeable != null) { in closeQuietly()
115 closeable.close(); in closeQuietly()
/external/slf4j/slf4j-nop/src/test/java/org/slf4j/
DInvocationTest.java121 MDC.MDCCloseable closeable = MDC.putCloseable("k", "v"); in testMDCCloseable() local
123 closeable.close(); in testMDCCloseable()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
DUtil.java87 public static void closeQuietly(Closeable closeable) { in closeQuietly() argument
88 if (closeable != null) { in closeQuietly()
90 closeable.close(); in closeQuietly()
/external/owasp/sanitizer/src/main/org/owasp/html/
DHtmlStreamRenderer.java392 private final Closeable closeable; field in HtmlStreamRenderer.CloseableHtmlStreamRenderer
399 this.closeable = (Closeable) output; in CloseableHtmlStreamRenderer()
404 closeable.close(); in close()
/external/nanohttpd/core/src/main/java/fi/iki/elonen/
DNanoHTTPD.java121 private static final void safeClose(Closeable closeable) { in safeClose() argument
122 if (closeable != null) { in safeClose()
124 closeable.close(); in safeClose()
130 private static final void safeClose(Socket closeable) { in safeClose() argument
131 if (closeable != null) { in safeClose()
133 closeable.close(); in safeClose()
139 private static final void safeClose(ServerSocket closeable) { in safeClose() argument
140 if (closeable != null) { in safeClose()
142 closeable.close(); in safeClose()
/external/smali/gradle/wrapper/
Dgradle-wrapper.jar ... channel private static void maybeCloseQuietly (java.io.Closeable) Exception ignore java.io.Closeable closeable } ...
/external/owasp/sanitizer/distrib/lib/
Dowasp-java-html-sanitizer.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/owasp/ org/ ...
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/bouncycastle/patches/
Dbcprov.patch7966 + private static void closeQuietly(Closeable closeable) {
7967 + if (closeable != null) {
7969 + closeable.close();
/external/vogar/lib/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/owasp/sanitizer/lib/guava-libraries/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.eclipse.ui.workbench_3.6.1.M20101117-0800.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...