| 1 |
import java.io.FileNotFoundException; |
| 2 |
import java.io.IOException; |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
public class GOSSIPValidation { |
| 7 |
|
| 8 |
public static void main(String[] args){ |
| 9 |
String valFile = ""; |
| 10 |
|
| 11 |
try{ |
| 12 |
valFile = args[0]; |
| 13 |
try{ |
| 14 |
Validator val = new Validator(valFile); |
| 15 |
val.validate(); |
| 16 |
} |
| 17 |
catch(FileNotFoundException e1){ |
| 18 |
System.err.println(e1.toString()); |
| 19 |
} |
| 20 |
catch(IOException e2){ |
| 21 |
System.err.println(e2.toString()); |
| 22 |
} |
| 23 |
} |
| 24 |
catch(IndexOutOfBoundsException e){ |
| 25 |
System.err.println("Please provide a val-file (for example: SIMPLECOUNT_0.8.val)"); |
| 26 |
} |
| 27 |
|
| 28 |
|
| 29 |
} |
| 30 |
} |