@Override
    public void send(final ByteBuffer b) throws IOException {
        // we know from how BufferChain works we have a backing array
        stream.write(b.array(), b.position() + b.arrayOffset(), b.remaining());
    }
A buffered writer which accepts byte arrays in addition to character arrays.

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