just a rename
This commit is contained in:
parent
0542bd8be6
commit
627c597838
|
@ -8,12 +8,12 @@ import java.io.IOException;
|
|||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
public class HandleFolder {
|
||||
public class ConvertTrcToMegaLogViewerWithDBC {
|
||||
public static void doJob(String dbcFileName, String inputFolderName, String outputFolder) throws IOException {
|
||||
System.out.println("Dbc file " + dbcFileName);
|
||||
DbcFile dbc = DbcFile.readFromFile(dbcFileName);
|
||||
|
||||
System.out.println("inputFolderName " + inputFolderName);
|
||||
System.out.println("outputFolder " + outputFolder);
|
||||
DbcFile dbc = DbcFile.readFromFile(dbcFileName);
|
||||
|
||||
File inputFolder = new File(inputFolderName);
|
||||
for (String inputFile : Objects.requireNonNull(inputFolder.list((dir, name) -> name.endsWith(".trc")))) {
|
|
@ -23,7 +23,7 @@ public class TrcToMlq {
|
|||
String dbcFileName = args[0];
|
||||
String inputFolder = args[1];
|
||||
String outputFolder = args[2];
|
||||
HandleFolder.doJob(dbcFileName, inputFolder, outputFolder);
|
||||
ConvertTrcToMegaLogViewerWithDBC.doJob(dbcFileName, inputFolder, outputFolder);
|
||||
} else if (args.length != 2) {
|
||||
System.err.println("Two or three arguments expected:");
|
||||
System.err.println(" either");
|
||||
|
|
|
@ -25,6 +25,7 @@ public class DbcFile {
|
|||
}
|
||||
|
||||
public static DbcFile readFromFile(String fileName) throws IOException {
|
||||
System.out.println("Reading DBC file from " + fileName + "...");
|
||||
DbcFile dbc = new DbcFile(LoggingStrategy.LOG_ONLY_TRANSLATED_FIELDS);
|
||||
{
|
||||
BufferedReader reader = new BufferedReader(new FileReader(fileName));
|
||||
|
|
Loading…
Reference in New Issue