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, isBlocking
close, getWrappedChannel, isOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRegistration
isBlocking
public WritableSocketChannel(SocketChannel wrappedChannel, SelectionRegistration registration)
wrappedChannel
- The source channel.registration
- The NIO registration.public int write(ByteBuffer src) throws IOException
write
in interface WritableByteChannel
src
- The source byte buffer.IOException
Copyright © 2005–2013. All rights reserved.