// Create old = new ByteArrayBuffer() => newer = new ByteArrayOutputStream()
// How many bytes? old.length() => newer.count()
// Delete all old.setLength(0) => newer.reset()
// Get all bytes old.buffer() => newer.toByteArray()
// Add some bytes old.append(buf, 0, len) => newer.write(buf, 0, len)