# Library Foundation

# Package Streams

## Overview

Classes: Base32Decoder, Base32DecoderBuf, Base32DecoderIOS, Base32Encoder, Base32EncoderBuf, Base32EncoderIOS, Base64Decoder, Base64DecoderBuf, Base64DecoderIOS, Base64Encoder, Base64EncoderBuf, Base64EncoderIOS, BasicBufferedBidirectionalStreamBuf, BasicBufferedStreamBuf, BasicMemoryBinaryReader, BasicMemoryBinaryWriter, BasicMemoryStreamBuf, BasicUnbufferedStreamBuf, BinaryReader, BinaryWriter, BufferAllocator, CountingIOS, CountingInputStream, CountingOutputStream, CountingStreamBuf, DataURIStream, DataURIStreamIOS, DeflatingIOS, DeflatingInputStream, DeflatingOutputStream, DeflatingStreamBuf, EOFToken, FIFOBufferStream, FIFOBufferStreamBuf, FIFOIOS, FileIOS, FileInputStream, FileOutputStream, FileStream, HexBinaryDecoder, HexBinaryDecoderBuf, HexBinaryDecoderIOS, HexBinaryEncoder, HexBinaryEncoderBuf, HexBinaryEncoderIOS, InflatingIOS, InflatingInputStream, InflatingOutputStream, InflatingStreamBuf, InputLineEndingConverter, InvalidToken, LineEnding, LineEndingConverterIOS, LineEndingConverterStreamBuf, MemoryIOS, MemoryInputStream, MemoryOutputStream, NullIOS, NullInputStream, NullOutputStream, NullStreamBuf, OutputLineEndingConverter, StreamCopier, StreamTokenizer, TeeIOS, TeeInputStream, TeeOutputStream, TeeStreamBuf, Token, WhitespaceToken

## Classes

### class Base32Decoder

This istream base32-decodes all data read from the istream connected to it.

### class Base32DecoderBuf

This streambuf base32-decodes all data read from the istream connected to it.

### class Base32DecoderIOS

The base class for Base32Decoder.

### class Base32Encoder

This ostream base32-encodes all data written to it and forwards it to a connected ostream.

### class Base32EncoderBuf

This streambuf base32-encodes all data written to it and forwards it to a connected ostream.

### class Base32EncoderIOS

The base class for Base32Encoder.

### class Base64Decoder

This istream base64-decodes all data read from the istream connected to it.

### class Base64DecoderBuf

This streambuf base64-decodes all data read from the istream connected to it.

### class Base64DecoderIOS

The base class for Base64Decoder.

### class Base64Encoder

This ostream base64-encodes all data written to it and forwards it to a connected ostream.

### class Base64EncoderBuf

This streambuf base64-encodes all data written to it and forwards it to a connected ostream.

### class Base64EncoderIOS

The base class for Base64Encoder.

### class BasicBufferedBidirectionalStreamBuf

This is an implementation of a buffered bidirectional streambuf that greatly simplifies the implementation of custom streambufs of various kinds.

### class BasicBufferedStreamBuf

This is an implementation of a buffered streambuf that greatly simplifies the implementation of custom streambufs of various kinds.

### class BasicMemoryBinaryReader

A convenient wrapper for using Buffer and MemoryStream with BinaryReader.

### class BasicMemoryBinaryWriter

A convenient wrapper for using Buffer and MemoryStream with BinarWriter.

### class BasicMemoryStreamBuf

BasicMemoryStreamBuf is a simple implementation of a stream buffer for reading and writing from a memory area.

### class BasicUnbufferedStreamBuf

This is an implementation of an unbuffered streambuf that greatly simplifies the implementation of custom streambufs of various kinds.

### class BinaryReader

This class reads basic types (and std::vectors thereof) in binary form into an input stream.

### class BinaryWriter

This class writes basic types (and std::vectors of these) in binary form into an output stream.

### class BufferAllocator

The BufferAllocator used if no specific BufferAllocator has been specified.

### class CountingIOS

The base class for CountingInputStream and CountingOutputStream.

### class CountingInputStream

This stream counts all characters and lines going through it.

### class CountingOutputStream

This stream counts all characters and lines going through it.

### class CountingStreamBuf

This stream buffer counts all characters and lines going through it.

### class DataURIStream

An input stream for reading data from a data URI.

### class DataURIStreamIOS

The base class for DataURIStream.

### class DeflatingIOS

The base class for DeflatingOutputStream and DeflatingInputStream.

### class DeflatingInputStream

This stream compresses all data passing through it using zlib's deflate algorithm.

### class DeflatingOutputStream

This stream compresses all data passing through it using zlib's deflate algorithm.

### class DeflatingStreamBuf

This is the streambuf class used by DeflatingInputStream and DeflatingOutputStream.

### class EOFToken

This token class is used to signal the end of the input stream.

### class FIFOBufferStream

An output stream for writing to a FIFO.

### class FIFOBufferStreamBuf

This is the streambuf class used for reading from and writing to a FIFOBuffer.

### class FIFOIOS

The base class for FIFOBufferInputStream and FIFOBufferStream.

### class FileIOS

The base class for FileInputStream and FileOutputStream.

### class FileInputStream

An input stream for reading from a file.

### class FileOutputStream

An output stream for writing to a file.

### class FileStream

A stream for reading from and writing to a file.

### class HexBinaryDecoder

This istream decodes all hexBinary-encoded data read from the istream connected to it.

### class HexBinaryDecoderBuf

This streambuf decodes all hexBinary-encoded data read from the istream connected to it.

### class HexBinaryDecoderIOS

The base class for HexBinaryDecoder.

### class HexBinaryEncoder

This ostream encodes all data written to it in BinHex encoding and forwards it to a connected ostream.

### class HexBinaryEncoderBuf

This streambuf encodes all data written to it in hexBinary encoding and forwards it to a connected ostream.

### class HexBinaryEncoderIOS

The base class for HexBinaryEncoder.

### class InflatingIOS

The base class for InflatingOutputStream and InflatingInputStream.

### class InflatingInputStream

This stream decompresses all data passing through it using zlib's inflate algorithm.

### class InflatingOutputStream

This stream decompresses all data passing through it using zlib's inflate algorithm.

### class InflatingStreamBuf

This is the streambuf class used by InflatingInputStream and InflatingOutputStream.

### class InputLineEndingConverter

InputLineEndingConverter performs line ending conversion on text input streams.

### class InvalidToken

This token class is used for signalling that an invalid character sequence has been encountered in the input stream.

### class LineEnding

This class defines valid line ending sequences for InputLineEndingConverter and OutputLineEndingConverter.

### class LineEndingConverterIOS

The base class for InputLineEndingConverter and OutputLineEndingConverter.

### class LineEndingConverterStreamBuf

This stream buffer performs line ending conversion on text streams.

### class MemoryIOS

The base class for MemoryInputStream and MemoryOutputStream.

### class MemoryInputStream

An input stream for reading from a memory area.

### class MemoryOutputStream

An input stream for reading from a memory area.

### class NullIOS

The base class for NullInputStream and NullOutputStream.

### class NullInputStream

Any read operation from this stream immediately yields EOF.

### class NullOutputStream

This stream discards all characters written to it.

### class NullStreamBuf

This stream buffer discards all characters written to it.

### class OutputLineEndingConverter

OutputLineEndingConverter performs line ending conversion on text output streams.

### class StreamCopier

This class provides static methods to copy the contents from one stream into another.

### class StreamTokenizer

A stream tokenizer splits an input stream into a sequence of tokens of different kinds.

### class TeeIOS

The base class for TeeInputStream and TeeOutputStream.

### class TeeInputStream

This stream copies all characters read through it to one or multiple output streams.

### class TeeOutputStream

This stream copies all characters written to it to one or multiple output streams.

### class TeeStreamBuf

This stream buffer copies all data written to or read from it to one or multiple output streams.

### class Token

The base class for all token classes that can be registered with the StreamTokenizer.

### class WhitespaceToken

This pseudo token class is used to eat up whitespace in between real tokens.