Class StreamUtils


  • public class StreamUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      StreamUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String streamToString​(java.io.InputStream inputStream)
      Loads all the text from an input string and returns the result as a string.
      • Methods inherited from class java.lang.Object

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

      • StreamUtils

        public StreamUtils()
    • Method Detail

      • streamToString

        public static java.lang.String streamToString​(java.io.InputStream inputStream)
                                               throws java.io.IOException
        Loads all the text from an input string and returns the result as a string.
        Parameters:
        inputStream - The stream to read.
        Returns:
        All of the text from the stream.
        Throws:
        java.io.IOException - Thrown if a read error occurs.