public final void copy(byte[] bytes,int offset,int length){
  if (this.bytes == null || this.bytes.length < length) {
    this.bytes=new byte[length];
  }
  System.arraycopy(bytes,offset,this.bytes,0,length);
  this.count=length;
}

public final void copy ( byte [ ] bytes , int offset , int length ) { if ( this . bytes == null || this . bytes . length < length ) { this . bytes = new byte [ length ] ; } System . arraycopy ( bytes , offset , this . bytes , 0 , length ) ; this . count = length ; }
copy the specified byte array to the buffer . replaces the current buffer .
