code: private void processProject(PrimaveraDatabaseReader reader, int projectID, String outputFile) throws Exception
     {
        long start = System.currentTimeMillis();
        reader.setProjectID(projectID);
        ProjectFile projectFile = reader.read();
        long elapsed = System.currentTimeMillis() - start;
        System.out.println("Reading database completed in " + elapsed + "ms.");
  
        System.out.println("Writing output file started.");
        start = System.currentTimeMillis();
        ProjectWriter writer = ProjectWriterUtility.getProjectWriter(outputFile);
        writer.write(projectFile, outputFile);
        elapsed = System.currentTimeMillis() - start;
        System.out.println("Writing output completed in " + elapsed + "ms.");
     }
docs: Process a single project.
  
  @param reader Primavera reader
  @param projectID required project ID
  @param outputFile output file name