Class Streams


  • public class Streams
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] toByteArray​(java.io.InputStream inputStream)
      Utility method to read all bytes from an InputStream.
      • Methods inherited from class java.lang.Object

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

      • toByteArray

        public static byte[] toByteArray​(java.io.InputStream inputStream)
                                  throws java.io.IOException
        Utility method to read all bytes from an InputStream.
        Throws:
        java.io.IOException