@Override
    public void close() throws java.io.IOException {
        buffer.flush();
        // Unit tests in prelude depends on the stream _not_ being flushed, it
        // is necessary for Jetty to write content length headers, it seems.
        // stream.flush();
        stream.close();
    }
A buffered writer which accepts byte arrays in addition to character arrays.

@author Steinar Knutsen
vespajlib/src/main/java/com/yahoo/io/ByteWriter.java