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.WritableByteChannel
public boolean isOpen()
isOpen
in interface java.nio.channels.Channel
public void close()
close
in interface java.io.Closeable
close
in interface AutoCloseable
close
in interface java.nio.channels.Channel