public void close(){
  try {
    if (fileChannel != null)     fileChannel.close();
    if (fileInput != null)     fileInput.close();
  }
 catch (  IOException e) {
    logger.warn("Unable to close buffered file reader: file=" + file.getName() + " exception="+ e.getMessage());
  }
  fileInput=null;
  bufferedInput=null;
  dataInput=null;
  offset=-1;
  available=0;
}

public void close ( ) { try { if ( fileChannel != null ) fileChannel . close ( ) ; if ( fileInput != null ) fileInput . close ( ) ; } catch ( IOException e ) { logger . warn ( "Unable to close buffered file reader: file=" + file . getName ( ) + " exception=" + e . getMessage ( ) ) ; } fileInput = null ; bufferedInput = null ; dataInput = null ; offset = - 1 ; available = 0 ; }
close and release all resources .
