public class StreamCopier extends Object
InputStreams to
OutputStreams.| Constructor and Description |
|---|
StreamCopier() |
StreamCopier(int bufferSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copy(InputStream in,
OutputStream out)
Copies from the input stream to the output stream until the input
stream is empty or one of the streams reports an error.
|
public StreamCopier(int bufferSize)
bufferSize - The buffer size.public StreamCopier()
public void copy(InputStream in, OutputStream out) throws IOException
Not thread safe - use multiple StreamCopier
instances instead.
in - Input stream.out - Output stream.IOException - If an IO problem occurred during the copy.Copyright © 2000-2014. All Rights Reserved.