Class Streams


  • public class Streams
    extends java.lang.Object
    utilities for IO streams
    • Constructor Summary

      Constructors 
      Constructor Description
      Streams()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] inputStream2ByteArray​(java.io.InputStream in)  
      • Methods inherited from class java.lang.Object

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

      • Streams

        public Streams()
    • Method Detail

      • inputStream2ByteArray

        public static byte[] inputStream2ByteArray​(java.io.InputStream in)
                                            throws java.lang.IllegalArgumentException,
                                                   java.io.IOException
        Parameters:
        in -
        Returns:
        byte[] holding the contents of the stream
        Throws:
        java.lang.IllegalArgumentException - if in == null
        java.io.IOException