public class FileBufferedChannel extends Object implements WritableByteChannel
WritableByteChannel which forwards the data to a delegate. The FileBufferedChannel will never
block because when the delegate is not writable, the data is buffered in a temporary file.| Constructor and Description |
|---|
FileBufferedChannel(Multiplexer multiplexer,
SelectableChannel delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
long |
transferFrom(ReadableByteChannel src,
long count)
???
|
int |
write(ByteBuffer src) |
public FileBufferedChannel(Multiplexer multiplexer, SelectableChannel delegate) throws IOException
delegate - Must also be a WritableByteChannelIOExceptionpublic int write(ByteBuffer src) throws IOException
write in interface WritableByteChannelIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionpublic long transferFrom(ReadableByteChannel src, long count) throws IOException
IOExceptionCopyright © 2018 Arno Unkrig. All rights reserved.