public class ReadableSocketChannel extends WrapperSocketChannel implements ReadableSelectionChannel
Constructor and Description |
---|
ReadableSocketChannel(SocketChannel wrappedChannel,
SelectionRegistration registration)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
read(ByteBuffer dst)
Reads the available byte form the wrapped socket channel.
|
getRegistration, isBlocking
close, getWrappedChannel, isOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRegistration
isBlocking
public ReadableSocketChannel(SocketChannel wrappedChannel, SelectionRegistration registration)
wrappedChannel
- The source channel.registration
- The NIO registration.public int read(ByteBuffer dst) throws IOException
read
in interface ReadableByteChannel
dst
- The destination byte buffer.IOException
Copyright © 2005–2018. All rights reserved.