public class StreamCopier extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
StreamCopier.Listener |
Constructor and Description |
---|
StreamCopier(InputStream in,
OutputStream out) |
Modifier and Type | Method and Description |
---|---|
StreamCopier |
bufSize(int bufSize) |
long |
copy() |
StreamCopier |
keepFlushing(boolean keepFlushing) |
StreamCopier |
length(long length) |
StreamCopier |
listener(StreamCopier.Listener listener) |
Event<IOException> |
spawn(String name) |
Event<IOException> |
spawnDaemon(String name) |
public StreamCopier(InputStream in, OutputStream out)
public StreamCopier bufSize(int bufSize)
public StreamCopier keepFlushing(boolean keepFlushing)
public StreamCopier listener(StreamCopier.Listener listener)
public StreamCopier length(long length)
public Event<IOException> spawn(String name)
public Event<IOException> spawnDaemon(String name)
public long copy() throws IOException
IOException
Copyright © 2009–2016. All rights reserved.