public static void closeMASCaseManager ( File caseManager ) { FileWriter caseManagerWriter ; try { caseManagerWriter = new FileWriter ( caseManager , true ) ; caseManagerWriter . write ( "}\n" ) ; caseManagerWriter . flush ( ) ; caseManagerWriter . close ( ) ; } catch ( IOException e ) { Logger logger = Logger . getLogger ( "CreateMASCaseManager.closeMASCaseManager" ) ; logger . info ( "ERROR: There is a mistake closing caseManager file.\n" ) ; } }
Method to close the file caseManager . It is called just one time by the MASReader once every test and stroy have been added .