/** Find the log files. */ private void findLogFiles() throws IOException { if (getCurrentFile().lastIndexOf(".") == -1) { // The current file name has no extension, skip trying to find the // log file(s). logFile = null; deconvolutionLogFile = null; return; } if (getCurrentFile().endsWith("_D3D.dv")) { logFile = getCurrentFile(); logFile = logFile.substring(0, logFile.indexOf("_D3D.dv")) + ".dv.log"; } else { logFile = getCurrentFile() + ".log"; if (!new Location(logFile).exists()) { logFile = getCurrentFile(); logFile = logFile.substring(0, logFile.lastIndexOf(".")) + ".log"; } } if (!new Location(logFile).exists()) logFile = null; int dot = getCurrentFile().lastIndexOf("."); String base = getCurrentFile().substring(0, dot); deconvolutionLogFile = base + "_log.txt"; if (!new Location(deconvolutionLogFile).exists()) { deconvolutionLogFile = null; } }
/** Find the log files. */ private void findLogFiles() throws IOException { if (getCurrentFile().lastIndexOf(".") == -1) { // The current file name has no extension, skip trying to find the // log file(s). logFile = null; deconvolutionLogFile = null; return; } if (getCurrentFile().endsWith("_D3D.dv")) { logFile = getCurrentFile(); logFile = logFile.substring(0, logFile.indexOf("_D3D.dv")) + ".dv.log"; } else { logFile = getCurrentFile() + ".log"; if (!new Location(logFile).exists()) { logFile = getCurrentFile(); logFile = logFile.substring(0, logFile.lastIndexOf(".")) + ".log"; } } if (!new Location(logFile).exists()) logFile = null; int dot = getCurrentFile().lastIndexOf("."); String base = getCurrentFile().substring(0, dot); deconvolutionLogFile = base + "_log.txt"; if (!new Location(deconvolutionLogFile).exists()) { deconvolutionLogFile = null; } }