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