|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.freecompany.redline.ChannelWrapper
org.freecompany.redline.ReadableChannelWrapper
public class ReadableChannelWrapper
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.freecompany.redline.ChannelWrapper |
---|
ChannelWrapper.Consumer<T>, ChannelWrapper.Key<T> |
Field Summary | |
---|---|
protected java.nio.channels.ReadableByteChannel |
channel
|
Fields inherited from class org.freecompany.redline.ChannelWrapper |
---|
consumers |
Constructor Summary | |
---|---|
ReadableChannelWrapper(java.nio.channels.ReadableByteChannel channel)
|
Method Summary | |
---|---|
void |
close()
|
boolean |
isOpen()
|
int |
read(java.nio.ByteBuffer buffer)
|
Methods inherited from class org.freecompany.redline.ChannelWrapper |
---|
finish, start, start, start, start |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.nio.channels.ReadableByteChannel channel
Constructor Detail |
---|
public ReadableChannelWrapper(java.nio.channels.ReadableByteChannel channel)
Method Detail |
---|
public int read(java.nio.ByteBuffer buffer) throws java.io.IOException
read
in interface java.nio.channels.ReadableByteChannel
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.nio.channels.Channel
close
in class ChannelWrapper
java.io.IOException
public boolean isOpen()
isOpen
in interface java.nio.channels.Channel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |