public void parse(Class clazz, PrintWriter output, String headerName, String projectName) throws Exception {
        long startTime = System.currentTimeMillis();
        
        Group[] groups = parseMethods(clazz);
        long finishTime = System.currentTimeMillis();

        lastExecutionTime = finishTime - startTime;
        
        String result = toPropertiesString(groups, headerName, projectName);

        writeProperties(output, result);
    }
public void parse ( Class clazz , PrintWriter output , String headerName , String projectName ) throws Exception { long startTime = System . currentTimeMillis ( ) ; Group [ ] groups = parseMethods ( clazz ) ; long finishTime = System . currentTimeMillis ( ) ; lastExecutionTime = finishTime - startTime ; String result = toPropertiesString ( groups , headerName , projectName ) ; writeProperties ( output , result ) ; }
Method to parse the class and write file in the choosen output.

@param clazz class to parse
@param output output file path
@param headerName
@param projectName