blob: 57aa4b68f805e0330379c448cd9e2367ba290fa4 (
plain)
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
27
28
29
30
31
|
package dslog;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
class Main {
public static void dslog2csv(String[] args) throws IOException {
for (String filename : args) {
System.out.println("Filename: "+filename);
DslogReader file = new DslogReader(new FileInputStream(filename));
System.out.println("Format Version: "+file.version);
System.out.println("Start Time: "+file.startTime);
CsvWriter.Dslog2CSV(file, System.out);
}
}
public static void main(String[] args) throws IOException {
for (String dirname : args) {
for (File file : (new File(dirname)).listFiles()) {
if (file.toString().endsWith(".dslog")) {
new DslogReader(new FileInputStream(file));
} else if (file.toString().endsWith(".dsevents")) {
new DseventsReader(new FileInputStream(file));
} else if (file.toString().endsWith(".pdplog")) {
new PdplogReader(new FileInputStream(file));
}
}
}
}
}
|