org.limewire.net
Class AsyncConnectionDispatcher
java.lang.Object
org.limewire.nio.channel.AbstractChannelInterestReader
org.limewire.net.AsyncConnectionDispatcher
- All Implemented Interfaces:
- Closeable, Channel, ReadableByteChannel, ScatteringByteChannel, ChannelReader, ChannelReadObserver, InterestReadableByteChannel, InterestScatteringByteChannel, IOErrorObserver, ReadObserver, Shutdownable
public class AsyncConnectionDispatcher
- extends AbstractChannelInterestReader
A ConnectionDispatcher that reads asynchronously from the socket.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsyncConnectionDispatcher
public AsyncConnectionDispatcher(ConnectionDispatcher dispatcher,
Socket socket,
String allowedWord,
boolean allowTLS)
handleRead
public void handleRead()
throws IOException
- Description copied from interface:
ReadObserver
- Notification that a read can be performed.
- Throws:
IOException
read
public int read(ByteBuffer dst)
- Specified by:
read in interface ReadableByteChannel- Overrides:
read in class AbstractChannelInterestReader
read
public long read(ByteBuffer[] dst)
- Specified by:
read in interface ScatteringByteChannel- Overrides:
read in class AbstractChannelInterestReader
read
public long read(ByteBuffer[] dst,
int offset,
int length)
- Specified by:
read in interface ScatteringByteChannel- Overrides:
read in class AbstractChannelInterestReader
Copyright © 2009. All Rights Reserved.