
public final class Streams
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
copyStream(java.io.InputStream input,
java.io.OutputStream output)
Copy from one stream to another.
|
static void |
copyStream(java.io.InputStream input,
java.io.OutputStream output,
boolean close)
Copy from one stream to another.
|
static void |
copyStream(java.io.InputStream input,
java.io.OutputStream output,
boolean close,
int bufferSize)
Copy from one stream to another.
|
public static void copyStream(java.io.InputStream input,
java.io.OutputStream output,
boolean close,
int bufferSize)
throws java.io.IOException
input - the source streamoutput - the destination streamclose - true if the input and output streams should be closedbufferSize - the buffer sizejava.io.IOException - if an I/O error occurspublic static void copyStream(java.io.InputStream input,
java.io.OutputStream output,
boolean close)
throws java.io.IOException
input - the source streamoutput - the destination streamclose - true if the input and output streams should be closedjava.io.IOException - if an I/O error occurspublic static void copyStream(java.io.InputStream input,
java.io.OutputStream output)
throws java.io.IOException
input - the source streamoutput - the destination streamjava.io.IOException - if an I/O error occursCopyright © 2010 JBoss, a division of Red Hat, Inc.