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 long getCount()
public int write(java.nio.ByteBuffer src)
write in interface java.nio.channels.WritableByteChannelpublic boolean isOpen()
isOpen in interface java.nio.channels.Channelpublic void close()
close in interface java.io.Closeableclose in interface AutoCloseableclose in interface java.nio.channels.Channel