软件包 | 描述 |
---|---|
java.lang |
提供对java编程语言的设计基础课。
|
java.nio.channels |
定义了渠道,它代表的是能够执行I/O操作的实体连接,如文件和套接字;定义选择器,多路复用,非阻塞I/O操作。
|
java.nio.channels.spi |
为
java.nio.channels 包服务提供商类。
|
Modifier and Type | Method and Description |
---|---|
static Channel |
System.inheritedChannel()
返回从创建这个java虚拟机实体继承的通道。
|
Modifier and Type | Interface and Description |
---|---|
interface |
AsynchronousByteChannel
一个可以读写字节的异步信道。
|
interface |
AsynchronousChannel
支持异步I / O操作的通道。
|
interface |
ByteChannel
一个可以读写字节的通道。
|
interface |
GatheringByteChannel
一个可以从一个缓冲区的序列写字节的通道。
|
interface |
InterruptibleChannel
可以异步关闭和中断的信道。
|
interface |
MulticastChannel
支持因特网协议(IP)多播的网络信道。
|
interface |
NetworkChannel
一个网络套接字的通道。
|
interface |
ReadableByteChannel
一个可以读取字节的通道。
|
interface |
ScatteringByteChannel
可以将字节读取到一个缓冲区序列的一个通道。
|
interface |
SeekableByteChannel
一个字节通道保持当前位置,允许位置被改变。
|
interface |
WritableByteChannel
一个可以写字节的通道。
|
Modifier and Type | Class and Description |
---|---|
class |
AsynchronousFileChannel
用于读取、写入和操作文件的异步通道。
|
class |
AsynchronousServerSocketChannel
面向流的监听套接字的异步信道。
|
class |
AsynchronousSocketChannel
面向流的连接套接字的异步通道。
|
class |
DatagramChannel
对于面向数据报套接字可选择频道。
|
class |
FileChannel
用于读、写、映射和操作文件的通道。
|
static class |
Pipe.SinkChannel
一个通道代表一
Pipe 可写结尾。
|
static class |
Pipe.SourceChannel
一个通道代表一
Pipe 可读的结束。
|
class |
SelectableChannel
一个通道,可以通过
Selector 复用。
|
class |
ServerSocketChannel
一种面向流的监听套接字的可选通道。
|
class |
SocketChannel
面向流的连接套接字的可选通道。
|
Modifier and Type | Method and Description |
---|---|
Channel |
FileLock.acquiredBy()
返回该锁被获取的文件的通道。
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractInterruptibleChannel
可中断通道基本实现类。
|
class |
AbstractSelectableChannel
用于可选择信道的基本实现类。
|
Modifier and Type | Method and Description |
---|---|
Channel |
SelectorProvider.inheritedChannel()
返回从创建这个java虚拟机实体继承的通道。
|
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.