void function ( ) { switch ( state ) { case READY : throw new IllegalStateException ( "srini_string" + tempFile + "srini_string" ) ; case CLOSED : throw new IllegalStateException ( "srini_string" + tempFile + "srini_string" ) ; default : fileWriter . close ( ) ; tempFile . renameTo ( file ) ; state = State . CLOSED ; } }
close the writer and rename the file . concode_field_sep State state concode_elem_sep File file concode_elem_sep File tempFile concode_elem_sep FileWriter fileWriter concode_elem_sep Logger logger concode_field_sep String getName concode_elem_sep Writer open