public PGMAcquisition(String path, int flow) { this.flow = flow; this.path = path; if (path == null) { err("got null file path!"); } if (FileTools.isUrl(path)) { try { initUrl(new URL(path)); } catch (Exception ex) { err("Error reading " + path, ex); } } else { initFile(new File(path)); } }