code: public void write(byte[] b)
          throws IOException
      {
          ensureSpareCapacity(b.length);
          System.arraycopy(b,0,_buf,_pos,b.length);
          _pos+=b.length;
      }
docs: /* ------------------------------------------------------------