public class StreamUtils
extends java.lang.Object
| Constructor and Description |
|---|
StreamUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeSilently(java.io.Closeable stream)
Closes a stream, without throwing IOException.
|
static java.lang.String |
readStreamAsString(java.io.InputStream stream) |
public static void closeSilently(java.io.Closeable stream)
stream - the stream that will be closedpublic static java.lang.String readStreamAsString(java.io.InputStream stream)
throws java.io.IOException
java.io.IOException