Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 712 Bytes

nio-channel.md

File metadata and controls

31 lines (19 loc) · 712 Bytes

Channel

继承关系

Channel

java.nio.channels.Channel

A channel represents an open connection to an entity such as a hardware device, a file, a network socket, or a program component that is capable of performing one or more distinct I/O operations, for example reading or writing.

FileChannel

ServerSocketChannel

ServerSocketChannel

accept method

public abstract SocketChannel accept() throws IOException;

The socket channel for the new connection, or null if this channel is in non-blocking mode and no connection is available to be accepted

SocketChannel

ServerSocketChannel