@Immutable public final class IoSockets extends Object
IoSockets.| Modifier and Type | Method and Description |
|---|---|
static void |
copy(InputSocket<?> input,
OutputSocket<?> output)
|
public static void copy(InputSocket<?> input, OutputSocket<?> output) throws InputException, IOException
created
by the given input socket to an output stream
created by the given output
socket.
This is a high performance implementation which uses a pooled daemon thread to fill a FIFO of pooled buffers which is concurrently flushed by the current thread.
input - an input socket for the input target.output - an output socket for the output target.InputException - if copying the data fails because of an
IOException thrown by the input socket.IOException - if copying the data fails because of an
IOException thrown by the output socket.Copyright © 2012–2016 Schlichtherle IT Services. All rights reserved.