code: public synchronized byte[] getBuffer() {
          byte[] dest = new byte[buf.length];
          System.arraycopy(buf, 0, dest, 0, dest.length);
          return dest;
      }
docs: Returns the reference to the output buffer.
  
  @return the reference to the <tt>byte[]</tt> output buffer.