软件包 | 描述 |
---|---|
java.nio.channels |
定义了渠道,它代表的是能够执行I/O操作的实体连接,如文件和套接字;定义选择器,多路复用,非阻塞I/O操作。
|
Modifier and Type | Interface and Description |
---|---|
interface |
MulticastChannel
支持因特网协议(IP)多播的网络信道。
|
Modifier and Type | Class and Description |
---|---|
class |
AsynchronousServerSocketChannel
面向流的监听套接字的异步信道。
|
class |
AsynchronousSocketChannel
面向流的连接套接字的异步通道。
|
class |
DatagramChannel
对于面向数据报套接字可选择频道。
|
class |
ServerSocketChannel
一种面向流的监听套接字的可选通道。
|
class |
SocketChannel
面向流的连接套接字的可选通道。
|
Modifier and Type | Method and Description |
---|---|
NetworkChannel |
NetworkChannel.bind(SocketAddress local)
将信道的套接字绑定到本地地址。
|
<T> NetworkChannel |
NetworkChannel.setOption(SocketOption<T> name, T value)
设置套接字选项的值。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.