public class FileBufferedChannel
extends java.lang.Object
implements java.nio.channels.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,
java.nio.channels.SelectableChannel delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
long |
transferFrom(java.nio.channels.ReadableByteChannel src,
long count)
???
|
int |
write(java.nio.ByteBuffer src) |
public FileBufferedChannel(Multiplexer multiplexer, java.nio.channels.SelectableChannel delegate) throws java.io.IOException
delegate - Must also be a WritableByteChanneljava.io.IOExceptionpublic int write(java.nio.ByteBuffer src)
throws java.io.IOException
write in interface java.nio.channels.WritableByteChanneljava.io.IOExceptionpublic boolean isOpen()
isOpen in interface java.nio.channels.Channelpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface java.nio.channels.Channeljava.io.IOExceptionpublic long transferFrom(java.nio.channels.ReadableByteChannel src,
long count)
throws java.io.IOException
java.io.IOException