Modify Filesplitter. Add digest to Configuration dialog master origin/HEAD origin/master
authorMaximilian Quellmalz <maximilian.quellmalz@mailbox.tu-dresden.de>
Mon, 15 Dec 2014 15:12:02 +0000 (16:12 +0100)
committerMaximilian Quellmalz <maximilian.quellmalz@mailbox.tu-dresden.de>
Mon, 15 Dec 2014 15:12:02 +0000 (16:12 +0100)
Splitter-ng-filesplitter/src/Filesplitter.java

index 9f358fa..6a37f64 100644 (file)
@@ -144,7 +144,7 @@ public class Filesplitter implements SplitterCallback {
                }
 
                println_info("-----");
-               println_info("All CodingTasks submitted");
+               //println_info("All CodingTasks submitted");
 
                println_info("Use 'h' or 'help' to display commands");
                // printUsage();
@@ -618,6 +618,17 @@ public class Filesplitter implements SplitterCallback {
                                                section.put(key, defaultval);
                                        }
                                        
+                                       key = "digest";
+                                       String defval = "none";
+                                       print_std(key+" (MD5, SHA-1, ...) ");
+                                       print_std("\tdefault=" + defval);
+                                       result = readCommandline("\t" + key + "=",true);
+                                       try {
+                                               if (!result.isEmpty()) section.put(key, result);
+                                       } catch (Exception e) {
+                                               //nothing
+                                       }
+                                       
                                        println_std("");
                                        saveconfig();
                                        init_codec(id);