Package com.github.scribejava.core.utils
Class StreamUtils
java.lang.Object
com.github.scribejava.core.utils.StreamUtils
Utils to deal with Streams.
-
Constructor Details
-
StreamUtils
public StreamUtils()
-
-
Method Details
-
getStreamContents
Returns the stream contents as an UTF-8 encoded string- Parameters:
is
- input stream- Returns:
- string contents
- Throws:
IOException
- in any. SocketTimeout in example
-
getGzipStreamContents
Return String content from a gzip stream- Parameters:
is
- input stream- Returns:
- string contents
- Throws:
IOException
- in any. SocketTimeout in example
-