| Package | Description | 
|---|---|
| java.lang | Provides classes that are fundamental to the design of the Java
 programming language. | 
| 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. | 
| java.nio.channels.spi | Service-provider classes for the  java.nio.channelspackage. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| static Channel | System. inheritedChannel()Returns the channel inherited from the entity that created this
 Java virtual machine. | 
| Modifier and Type | Interface | Description | 
|---|---|---|
| interface  | AsynchronousByteChannelAn asynchronous channel that can read and write bytes. | |
| interface  | AsynchronousChannelA channel that supports asynchronous I/O operations. | |
| interface  | ByteChannelA channel that can read and write bytes. | |
| interface  | GatheringByteChannelA channel that can write bytes from a sequence of buffers. | |
| interface  | InterruptibleChannelA channel that can be asynchronously closed and interrupted. | |
| interface  | MulticastChannelA network channel that supports Internet Protocol (IP) multicasting. | |
| interface  | NetworkChannelA channel to a network socket. | |
| interface  | ReadableByteChannelA channel that can read bytes. | |
| interface  | ScatteringByteChannelA channel that can read bytes into a sequence of buffers. | |
| interface  | SeekableByteChannelA byte channel that maintains a current position and allows the
 position to be changed. | |
| interface  | WritableByteChannelA channel that can write bytes. | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | AsynchronousFileChannelAn asynchronous channel for reading, writing, and manipulating a file. | |
| class  | AsynchronousServerSocketChannelAn asynchronous channel for stream-oriented listening sockets. | |
| class  | AsynchronousSocketChannelAn asynchronous channel for stream-oriented connecting sockets. | |
| class  | DatagramChannelA selectable channel for datagram-oriented sockets. | |
| class  | FileChannelA channel for reading, writing, mapping, and manipulating a file. | |
| static class  | Pipe.SinkChannelA channel representing the writable end of a  Pipe. | |
| static class  | Pipe.SourceChannelA channel representing the readable end of a  Pipe. | |
| class  | SelectableChannelA channel that can be multiplexed via a  Selector. | |
| class  | ServerSocketChannelA selectable channel for stream-oriented listening sockets. | |
| class  | SocketChannelA selectable channel for stream-oriented connecting sockets. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Channel | FileLock. acquiredBy()Returns the channel upon whose file this lock was acquired. | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | AbstractInterruptibleChannelBase implementation class for interruptible channels. | |
| class  | AbstractSelectableChannelBase implementation class for selectable channels. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Channel | SelectorProvider. inheritedChannel()Returns the channel inherited from the entity that created this
 Java virtual machine. | 
 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.