Example usage for Java java.nio.channels Channels fields, constructors, methods, implement or subclass
The text is from its open source code.
ReadableByteChannel | newChannel(InputStream in) Constructs a channel that reads bytes from the given stream. |
WritableByteChannel | newChannel(OutputStream out) Constructs a channel that writes bytes to the given stream. |
InputStream | newInputStream(ReadableByteChannel ch) Constructs a stream that reads bytes from the given channel. |
InputStream | newInputStream(AsynchronousByteChannel ch) Constructs a stream that reads bytes from the given channel. |
OutputStream | newOutputStream(WritableByteChannel ch) Constructs a stream that writes bytes to the given channel. |
OutputStream | newOutputStream(AsynchronousByteChannel ch) Constructs a stream that writes bytes to the given channel. |
Reader | newReader(ReadableByteChannel ch, String csName) Constructs a reader that decodes bytes from the given channel according to the named charset. |
Reader | newReader(ReadableByteChannel ch, Charset charset) Constructs a reader that decodes bytes from the given channel according to the given charset. |
Writer | newWriter(WritableByteChannel ch, String csName) Constructs a writer that encodes characters according to the named charset and writes the resulting bytes to the given channel. |
Writer | newWriter(WritableByteChannel ch, Charset charset) Constructs a writer that encodes characters according to the given charset and writes the resulting bytes to the given channel. |