public class CountingWritableChannel
extends Object
implements java.nio.channels.WritableByteChannel
| Constructor and Description |
|---|
CountingWritableChannel(java.nio.channels.WritableByteChannel sink) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getCount() |
boolean |
isOpen() |
int |
write(java.nio.ByteBuffer src) |
public CountingWritableChannel(java.nio.channels.WritableByteChannel sink)
public void close()
close in interface java.io.Closeableclose in interface AutoCloseableclose in interface java.nio.channels.Channelpublic long getCount()
public boolean isOpen()
isOpen in interface java.nio.channels.Channelpublic int write(java.nio.ByteBuffer src)
write in interface java.nio.channels.WritableByteChannel