public final class Closeables extends Object
Modifier and Type | Method and Description |
---|---|
static Exception |
closeAll(AutoCloseable... closeables) |
static IOException |
closeAll(Closeable... closeables) |
static Exception |
closeAll(Exception propagate,
AutoCloseable... closeables) |
static IOException |
closeAll(Exception propagate,
Closeable... closeables) |
static Exception |
closeAll(Exception propagate,
Iterable<? extends AutoCloseable> closeables) |
static Exception |
closeAll(Iterable<? extends AutoCloseable> closeables) |
static IOException |
closeSelectorChannels(IOException propagate,
Selector selector) |
static IOException |
closeSelectorChannels(Selector selector) |
@Nullable @CheckReturnValue public static Exception closeAll(AutoCloseable... closeables)
@Nullable @CheckReturnValue public static Exception closeAll(@Nullable Exception propagate, AutoCloseable... closeables)
@Nullable @CheckReturnValue public static IOException closeAll(Closeable... closeables)
@Nullable @CheckReturnValue public static IOException closeAll(@Nullable Exception propagate, Closeable... closeables)
@Nullable @CheckReturnValue public static Exception closeAll(Iterable<? extends AutoCloseable> closeables)
@Nullable @CheckReturnValue public static Exception closeAll(@Nullable Exception propagate, Iterable<? extends AutoCloseable> closeables)
@Nullable @CheckReturnValue public static IOException closeSelectorChannels(Selector selector)
@Nullable @CheckReturnValue public static IOException closeSelectorChannels(@Nullable IOException propagate, Selector selector)
Copyright © 2018 SPF4J. All rights reserved.