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 WritableByteChannel
IOException
public int write(ByteBuffer src) throws IOException
write
in interface WritableByteChannel
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
IOException
public long transferFrom(ReadableByteChannel src, long count) throws IOException
IOException
Copyright © 2018 Arno Unkrig. All rights reserved.