@Override public void write(final byte[] bytes, final int off, final int len) throws IOException { if(log.isLoggable(Level.FINE)) { log.fine(String.format("Buffer %d bytes at offset %d", len, offset)); } final byte[] chunk = new byte[len]; System.arraycopy(bytes, off, chunk, 0, len); buffer.write(chunk, offset); super.write(bytes, off, len); }