class StreamHelper {

    public void serveMultiRangeStream(final InputStream inputStream, final OutputStream outputStream)
            throws IOException {
        int numberOfBufferReadBytes;
        byte[] buffer = new byte[BUFFER_SIZE];

        while ((numberOfBufferReadBytes = inputStream.read(buffer)) != -1) {
            outputStream.write(buffer, 0, numberOfBufferReadBytes);
            outputStream.flush();

            Statistics.addBytesSent(numberOfBufferReadBytes);
        }
    }

    public  StreamHelper(final RangeHelper rangeHelper,
                        final RangePartHeaderSerializer rangePartHeaderSerializer);

}