Kenmegne
2025-12-10 e34275be46c7c50daa5f5229a4c19c4e0ffa83ff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Project/Maven2/JavaApp/src/main/java/${packagePath}/${mainClassName}.java to edit this template
 */
package com.megatim.generatetxt;
 
import com.megatim.generatetxt.generate.ParseData;
import java.io.File;
import com.megatim.generatetxt.pojo.FileToValidateDescription;
import java.util.HashSet;
 
/**
 *
 * @author ASUS
 */
public class App {
 
    public static void main(String[] args) throws Exception {
        File dataFile = new File("C:\\Users\\ASUS\\Documents\\minfopra\\E20.M102025.csv");
        String validatorPath = "C:\\Users\\ASUS\\Downloads\\REF000027-20251112-171437\\validateurs\\000026\\FPR\\Fdx-ValidatorFPRE20-20251104-094833.xml";
        String outputDir = "C:\\Users\\ASUS\\Documents\\ERROR";
        FileToValidateDescription fileDesc = new FileToValidateDescription(dataFile, "\n", ";", "FPRE20", validatorPath, outputDir);
        File file = new ParseData().validateCsvFile(fileDesc, true, new HashSet<>(), 2);
        System.out.println("--------- file = " + file.getAbsolutePath());
    }
}