Package com.github.scribejava.core.utils
Class StreamUtils
- java.lang.Object
-
- com.github.scribejava.core.utils.StreamUtils
-
public abstract class StreamUtils extends java.lang.ObjectUtils to deal with Streams.
-
-
Constructor Summary
Constructors Constructor Description StreamUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetGzipStreamContents(java.io.InputStream is)Return String content from a gzip streamstatic java.lang.StringgetStreamContents(java.io.InputStream is)Returns the stream contents as an UTF-8 encoded string
-
-
-
Method Detail
-
getStreamContents
public static java.lang.String getStreamContents(java.io.InputStream is) throws java.io.IOExceptionReturns the stream contents as an UTF-8 encoded string- Parameters:
is- input stream- Returns:
- string contents
- Throws:
java.io.IOException- in any. SocketTimeout in example
-
getGzipStreamContents
public static java.lang.String getGzipStreamContents(java.io.InputStream is) throws java.io.IOExceptionReturn String content from a gzip stream- Parameters:
is- input stream- Returns:
- string contents
- Throws:
java.io.IOException- in any. SocketTimeout in example
-
-