java.io.Closeable
, java.lang.AutoCloseable
, java.nio.channels.Channel
, java.nio.channels.ReadableByteChannel
public class ChannelFunctionReadableByteChannel
extends java.lang.Object
implements java.nio.channels.ReadableByteChannel
Constructor | Description |
---|---|
ChannelFunctionReadableByteChannel(java.nio.channels.ReadableByteChannel channel,
ChannelFunction... functions) |
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
|
boolean |
isOpen() |
|
int |
read(java.nio.ByteBuffer dst) |
public ChannelFunctionReadableByteChannel(java.nio.channels.ReadableByteChannel channel, ChannelFunction... functions)
public int read(java.nio.ByteBuffer dst) throws java.io.IOException
read
in interface java.nio.channels.ReadableByteChannel
java.io.IOException
public boolean isOpen()
isOpen
in interface java.nio.channels.Channel
public void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
close
in interface java.nio.channels.Channel
close
in interface java.io.Closeable
java.io.IOException
Copyright © 2018. All rights reserved.