private boolean update(boolean doReset, boolean autoClose) throws IOException { if (this.closed) { return false; } boolean result = false; StatArchiveReader.StatArchiveFile[] archives = getArchives(); for (int i=0; i < archives.length; i++) { StatArchiveFile f = archives[i]; if (f.update(doReset)) { result = true; } if (autoClose) { f.close(); } } return result; }
private boolean update(boolean doReset, boolean autoClose) throws IOException { if (this.closed) { return false; } boolean result = false; StatArchiveReader.StatArchiveFile[] archives = getArchives(); for (int i=0; i < archives.length; i++) { StatArchiveFile f = archives[i]; if (f.update(doReset)) { result = true; } if (autoClose) { f.close(); } } return result; }
/** * Closes all archives. */ public void close() throws IOException { if (!this.closed) { StatArchiveReader.StatArchiveFile[] archives = getArchives(); for (int i=0; i < archives.length; i++) { StatArchiveFile f = archives[i]; f.close(); } this.closed = true; } }
/** * Closes all archives. */ public void close() throws IOException { if (!this.closed) { StatArchiveReader.StatArchiveFile[] archives = getArchives(); for (int i=0; i < archives.length; i++) { StatArchiveFile f = archives[i]; f.close(); } this.closed = true; } }