Stay organized with collections Save and categorize content based on your preferences. ByteChannel
public interface ByteChannel
implements ReadableByteChannel, WritableByteChannel
| java.nio.channels.ByteChannel |
Known indirect subclasses | DatagramChannel | A selectable channel for datagram-oriented sockets. | | FileChannel | A channel for reading, writing, mapping, and manipulating a file. | | SeekableByteChannel | A byte channel that maintains a current position and allows the position to be changed. | | SocketChannel | A selectable channel for stream-oriented connecting sockets. | |
A channel that can read and write bytes. This interface simply unifies ReadableByteChannel and WritableByteChannel; it does not specify any new operations.
Summary
Inherited methods |
| |
| |
| |
From interface java.io.Closeable abstract void | close() Closes this stream and releases any system resources associated with it. | |
| |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]