Channels

Class Channels

public final class Channels
extends Object

Utility methods for channels and streams.

This class defines static methods that support the interoperation of the stream classes of the java.io package with the channel classes of this package.

Since:
1.4

Methods

newInputStream

public static InputStream newInputStream(ReadableByteChannel ch)

Constructs a stream that reads bytes from the given channel.

The read methods of the