Class StreamUtils


  • public class StreamUtils
    extends java.lang.Object
    Utils to deal with Streams.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getStreamContents​(java.io.InputStream is)
      Returns the stream contents as an UTF-8 encoded string
      • Methods inherited from class java.lang.Object

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

      • getStreamContents

        public static java.lang.String getStreamContents​(java.io.InputStream is)
        Returns the stream contents as an UTF-8 encoded string
        Parameters:
        is - input stream
        Returns:
        string contents