public void reset(){
  currentBuffer=null;
  currentBufferIndex=-1;
  bufferPosition=0;
  bufferStart=0;
  bufferLength=0;
  file.setLength(0);
  if (crc != null) {
    crc.reset();
  }
}

public void reset ( ) { currentBuffer = null ; currentBufferIndex = - 1 ; bufferPosition = 0 ; bufferStart = 0 ; bufferLength = 0 ; file . setLength ( 0 ) ; if ( crc != null ) { crc . reset ( ) ; } }
resets this to an empty file .
