Java java.nio.channels Channels fields, constructors, methods, implement or subclass

Example usage for Java java.nio.channels Channels fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.nio.channels Channels.

The text is from its open source code.

Method

ReadableByteChannelnewChannel(InputStream in)
Constructs a channel that reads bytes from the given stream.
WritableByteChannelnewChannel(OutputStream out)
Constructs a channel that writes bytes to the given stream.
InputStreamnewInputStream(ReadableByteChannel ch)
Constructs a stream that reads bytes from the given channel.
InputStreamnewInputStream(AsynchronousByteChannel ch)
Constructs a stream that reads bytes from the given channel.
OutputStreamnewOutputStream(WritableByteChannel ch)
Constructs a stream that writes bytes to the given channel.
OutputStreamnewOutputStream(AsynchronousByteChannel ch)
Constructs a stream that writes bytes to the given channel.
ReadernewReader(ReadableByteChannel ch, String csName)
Constructs a reader that decodes bytes from the given channel according to the named charset.
ReadernewReader(ReadableByteChannel ch, Charset charset)
Constructs a reader that decodes bytes from the given channel according to the given charset.
WriternewWriter(WritableByteChannel ch, String csName)
Constructs a writer that encodes characters according to the named charset and writes the resulting bytes to the given channel.
WriternewWriter(WritableByteChannel ch, Charset charset)
Constructs a writer that encodes characters according to the given charset and writes the resulting bytes to the given channel.