A stream buffer is a class to buffer data that has been written to an OutputStream and provide the data in an InputStream.