Package com.github.scribejava.core.utils
Class StreamUtils
- java.lang.Object
-
- com.github.scribejava.core.utils.StreamUtils
-
public abstract class StreamUtils extends Object
Utils to deal with Streams.
-
-
Constructor Summary
Constructors Constructor Description StreamUtils()
-
Method Summary
Modifier and Type Method Description static String
getGzipStreamContents(InputStream is)
Return String content from a gzip streamstatic String
getStreamContents(InputStream is)
Returns the stream contents as an UTF-8 encoded string
-
-
-
Method Detail
-
getStreamContents
public static String getStreamContents(InputStream is) throws IOException
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
public static String getGzipStreamContents(InputStream is) throws IOException
Return String content from a gzip stream- Parameters:
is
- input stream- Returns:
- string contents
- Throws:
IOException
- in any. SocketTimeout in example
-
-