fix for bin extension not being set in Table

This commit is contained in:
Ben Fry
2013-04-30 18:57:23 -04:00
parent 66a5795ab3
commit 625ce847e4

View File

@@ -276,18 +276,16 @@ public class Table {
extension = "csv";
} else if (opt.equals("ods")) {
extension = "ods";
} else if (opt.equals("newlines")) {
awfulCSV = true;
extension = "csv";
} else if (opt.equals("bin")) {
binary = true;
extension = "bin";
} else if (opt.equals("header")) {
header = true;
} else if (opt.startsWith(sheetParam)) {
worksheet = opt.substring(sheetParam.length());
} else {
throw new IllegalArgumentException("'" + opt + "' is not a valid option for loading a Table");
}