public class WritableSocketChannel extends WrapperSocketChannel implements WritableSelectionChannel
| Constructor and Description |
|---|
WritableSocketChannel(SocketChannel wrappedChannel,
SelectionRegistration registration)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
write(ByteBuffer src)
Writes the given bytes to the wrapped socket channel.
|
getRegistration, isBlockingclose, getWrappedChannel, isOpenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRegistrationisBlockingpublic WritableSocketChannel(SocketChannel wrappedChannel, SelectionRegistration registration)
wrappedChannel - The source channel.registration - The NIO registration.public int write(ByteBuffer src) throws IOException
write in interface WritableByteChannelsrc - The source byte buffer.IOExceptionCopyright © 2005–2015. All rights reserved.