Class 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.InputStream getInputStream​(java.net.Socket s)
      Workaround for a bug in Android 7, see https://android-review.googlesource.com/#/c/271775/
      static java.io.OutputStream getOutputStream​(java.net.Socket s)
      Workaround for a bug in Android 7, see https://android-review.googlesource.com/#/c/271775/
      static void readFully​(java.io.InputStream in, byte[] b)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IoUtils

        public IoUtils()
    • 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.IOException
        Workaround 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.IOException
        Workaround for a bug in Android 7, see https://android-review.googlesource.com/#/c/271775/
        Throws:
        java.io.IOException