Package org.conscrypt.io
Class IoUtils
- java.lang.Object
-
- org.conscrypt.io.IoUtils
-
@Internal public final class IoUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description privateIoUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcloseQuietly(java.io.Closeable closeable)Closes 'closeable', ignoring any checked exceptions.static voidcloseQuietly(java.net.Socket socket)Closes 'socket', ignoring any exceptions.static voidthrowInterruptedIoException()
-
-
-
Method Detail
-
closeQuietly
public static void closeQuietly(java.io.Closeable closeable)
Closes 'closeable', ignoring any checked exceptions. Does nothing if 'closeable' is null.
-
closeQuietly
public static void closeQuietly(java.net.Socket socket)
Closes 'socket', ignoring any exceptions. Does nothing if 'socket' is null.
-
throwInterruptedIoException
public static void throwInterruptedIoException() throws java.io.InterruptedIOException- Throws:
java.io.InterruptedIOException
-
-