Package org.briarproject.util
Class IoUtils
- java.lang.Object
-
- org.briarproject.util.IoUtils
-
@NotNullByDefault public class IoUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description IoUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.InputStreamgetInputStream(java.net.Socket s)Workaround for a bug in Android 7, see https://android-review.googlesource.com/#/c/271775/static java.io.OutputStreamgetOutputStream(java.net.Socket s)Workaround for a bug in Android 7, see https://android-review.googlesource.com/#/c/271775/static voidreadFully(java.io.InputStream in, byte[] b)
-
-
-
Method Detail
-
readFully
public static void readFully(java.io.InputStream in, byte[] b) throws java.io.IOException- Throws:
java.io.IOException
-
getInputStream
public static java.io.InputStream getInputStream(java.net.Socket s) throws java.io.IOExceptionWorkaround for a bug in Android 7, see https://android-review.googlesource.com/#/c/271775/- Throws:
java.io.IOException
-
getOutputStream
public static java.io.OutputStream getOutputStream(java.net.Socket s) throws java.io.IOExceptionWorkaround for a bug in Android 7, see https://android-review.googlesource.com/#/c/271775/- Throws:
java.io.IOException
-
-