Package net.jimblackler.jsonschemafriend
Class StreamUtils
- java.lang.Object
-
- net.jimblackler.jsonschemafriend.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.StringstreamToString(java.io.InputStream inputStream)Loads all the text from an input string and returns the result as a string.
-
-
-
Method Detail
-
streamToString
public static java.lang.String streamToString(java.io.InputStream inputStream) throws java.io.IOExceptionLoads 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.
-
-