Class StreamUtils


  • @Internal
    public class StreamUtils
    extends java.lang.Object
    Utility functions for stream operations.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] getBytesWithoutClosing​(java.io.InputStream stream)
      Efficient converting stream to bytes.
      • Methods inherited from class java.lang.Object

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

      • getBytesWithoutClosing

        public static byte[] getBytesWithoutClosing​(java.io.InputStream stream)
                                             throws java.io.IOException
        Efficient converting stream to bytes.
        Throws:
        java.io.IOException