# Package org.xnio.streams

package org.xnio.streams
Utility classes for creating streams which use XNIO channels.

Related Packages
Package
Description
org.xnio
The main API package for XNIO.
Class
Description
BufferedChannelInputStream
An input stream which reads from a stream source channel with a buffer.
BufferPipeInputStream
An `InputStream` implementation which is populated asynchronously with `ByteBuffer` instances.
BufferPipeInputStream.InputHandler
A handler for events relating to the consumption of data from a `BufferPipeInputStream` instance.
BufferPipeOutputStream
An `OutputStream` implementation which writes out `ByteBuffer`s to a consumer.
BufferPipeOutputStream.BufferWriter
A buffer writer for an `BufferPipeOutputStream`.
ChannelInputStream
An input stream which reads from a stream source channel.
ChannelOutputStream
An output stream which writes to a stream sink channel.
LimitedInputStream
An input stream which truncates the underlying stream to the given length.
LimitedOutputStream
An output stream which truncates the writable output to the given length.
Pipe
An in-VM pipe between an input stream and an output stream, which does not suffer from the bugs in `PipedInputStream`.
ReaderInputStream
An input stream which encodes characters into bytes.
Streams
Stream utility class.
WriterOutputStream
An output stream which decodes bytes into a character writer.