public class StreamUtils extends Object
| Constructor and Description |
|---|
StreamUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(InputStream in,
OutputStream out,
int bufferSize) |
static void |
copyThenClose(InputStream in,
OutputStream out) |
static String |
toString(InputStream in) |
static String |
toStringSafe(InputStream in) |
public static void copy(InputStream in, OutputStream out, int bufferSize) throws IOException
IOExceptionpublic static void copyThenClose(InputStream in, OutputStream out) throws IOException
IOExceptionpublic static String toString(InputStream in) throws IOException
IOExceptionpublic static String toStringSafe(InputStream in)
Copyright © 2013. All Rights Reserved.