public class StreamUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static byte[] |
EMPTY_BYTES |
Constructor and Description |
---|
StreamUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
closeQuietly(java.io.Closeable c)
Close and ignore all errors.
|
static void |
copyStream(java.io.InputStream input,
java.io.OutputStream output)
Copy the data from an
InputStream to an OutputStream . |
static void |
copyStream(java.io.InputStream input,
java.io.OutputStream output,
int bufferSize)
Copy the data from an
InputStream to an OutputStream . |
public static void copyStream(java.io.InputStream input, java.io.OutputStream output) throws java.io.IOException
InputStream
to an OutputStream
.java.io.IOException
public static void copyStream(java.io.InputStream input, java.io.OutputStream output, int bufferSize) throws java.io.IOException
InputStream
to an OutputStream
.java.io.IOException
public static void closeQuietly(java.io.Closeable c)