Control verbose output

This commit is contained in:
2022-02-27 16:07:17 -06:00
parent 3d1f8668ee
commit a822f69ea4

View File

@@ -1,10 +1,12 @@
import java.io.*; import java.io.*;
public class GraphDataObjectReader { public class GraphDataObjectReader {
private GraphWithMapData data; private GraphWithMapData data;
private String filename; private String filename;
private boolean verbose = true;
public GraphDataObjectReader(String filename) throws IOException { public GraphDataObjectReader(String filename, boolean verbose) throws IOException {
if(!filename.matches(".*\\.ser")){ if(!filename.matches(".*\\.ser")){
filename = filename + ".ser"; filename = filename + ".ser";
} }