public void reset(){
  close();
  allocateNewBlock();
  index=0;
  current=blocks.get(index);
}

public void reset ( ) { close ( ) ; allocateNewBlock ( ) ; index = 0 ; current = blocks . get ( index ) ; }
resets the write buffer to empty .
