public abstract class StreamUtils extends Object
| Constructor and Description |
|---|
StreamUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getGzipStreamContents(InputStream is)
Return String content from a gzip stream
|
static String |
getStreamContents(InputStream is)
Returns the stream contents as an UTF-8 encoded string
|
public static String getStreamContents(InputStream is) throws IOException
is - input streamIOException - in any. SocketTimeout in examplepublic static String getGzipStreamContents(InputStream is) throws IOException
is - input streamIOException - in any. SocketTimeout in exampleCopyright © 2018. All rights reserved.