public final class IOUtils
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
IOUtils()
Private constructor to prevent instantiation of this utility class.
|
Modifier and Type | Method and Description |
---|---|
static long |
copy(java.io.InputStream input,
java.io.OutputStream output)
Copies the content of a InputStream into an OutputStream.
|
static long |
copy(java.io.InputStream input,
java.io.OutputStream output,
int buffersize)
Copies the content of a InputStream into an OutputStream
|
private IOUtils()
public static long copy(java.io.InputStream input, java.io.OutputStream output) throws java.io.IOException
input
- the InputStream to copyoutput
- the target Streamjava.io.IOException
- if an error occurspublic static long copy(java.io.InputStream input, java.io.OutputStream output, int buffersize) throws java.io.IOException
input
- the InputStream to copyoutput
- the target Streambuffersize
- the buffer size to usejava.io.IOException
- if an error occurs