| Package | Description |
|---|---|
| java.nio.channels |
Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations.
|
| Modifier and Type | Method and Description |
|---|---|
abstract <A> void |
AsynchronousServerSocketChannel.accept(A attachment, CompletionHandler
Accepts a connection.
|
abstract <A> void |
AsynchronousSocketChannel.connect(SocketAddress
Connects this channel.
|
<A> void |
AsynchronousFileChannel.lock(A attachment, CompletionHandler
Acquires an exclusive lock on this channel's file.
|
abstract <A> void |
AsynchronousFileChannel.lock(long position, long size, boolean shared, A attachment, CompletionHandler
Acquires a lock on the given region of this channel's file.
|
abstract <A> void |
AsynchronousSocketChannel.read(ByteBuffer
Reads a sequence of bytes from this channel into a subsequence of the given buffers.
|
<A> void |
AsynchronousSocketChannel.read(ByteBuffer
|
<A> void |
AsynchronousByteChannel.read(ByteBuffer
Reads a sequence of bytes from this channel into the given buffer.
|
abstract <A> void |
AsynchronousFileChannel.read(ByteBuffer
Reads a sequence of bytes from this channel into the given buffer, starting at the given file position.
|
abstract <A> void |
AsynchronousSocketChannel.read(ByteBuffer
Reads a sequence of bytes from this channel into the given buffer.
|
abstract <A> void |
AsynchronousSocketChannel.write(ByteBuffer
Writes a sequence of bytes to this channel from a subsequence of the given buffers.
|
<A> void |
AsynchronousSocketChannel.write(ByteBuffer
|
<A> void |
AsynchronousByteChannel.write(ByteBuffer
Writes a sequence of bytes to this channel from the given buffer.
|
abstract <A> void |
AsynchronousFileChannel.write(ByteBuffer
Writes a sequence of bytes to this channel from the given buffer, starting at the given file position.
|
abstract <A> void |
AsynchronousSocketChannel.write(ByteBuffer
Writes a sequence of bytes to this channel from the given buffer.
|