public final class Streams extends Object
Modifier and Type | Method and Description |
---|---|
static void |
copyStream(InputStream input,
OutputStream output)
Copy from one stream to another.
|
static void |
copyStream(InputStream input,
OutputStream output,
boolean close)
Copy from one stream to another.
|
static void |
copyStream(InputStream input,
OutputStream output,
boolean close,
int bufferSize)
Copy from one stream to another.
|
public static void copyStream(InputStream input, OutputStream output, boolean close, int bufferSize) throws IOException
input
- the source streamoutput
- the destination streamclose
- true
if the input and output streams should be closedbufferSize
- the buffer sizeIOException
- if an I/O error occurspublic static void copyStream(InputStream input, OutputStream output, boolean close) throws IOException
input
- the source streamoutput
- the destination streamclose
- true
if the input and output streams should be closedIOException
- if an I/O error occurspublic static void copyStream(InputStream input, OutputStream output) throws IOException
input
- the source streamoutput
- the destination streamIOException
- if an I/O error occursCopyright © 2016 JBoss by Red Hat. All rights reserved.