private void update(String target, String source) { String targetFile = getAbsolutePath(target); move(getAbsolutePath(source), targetFile); Entry entry = (Entry)table.get(target); entry.setTimeStamp(new File(targetFile).lastModified()); entry.setId(entry.getId() + 1);
public void update(String[] targets, String[] sources) throws IOException { if (fileStream == null) throw new IllegalStateException("Manager must be locked to update"); for (int i = 0; i < targets.length; i++) if (!isCurrent(targets[i])) throw new IOException("Target: " + targets[i] + " is out of date"); for (int i = 0; i < targets.length; i++) { String target = targets[i]; remember(target); update(target, sources[i]); }
	private void update(String target, String source) {		String targetFile = getAbsolutePath(target);		move(getAbsolutePath(source), targetFile);		Entry entry = (Entry)table.get(target);		entry.setTimeStamp(new File(targetFile).lastModified());		entry.setId(entry.getId() + 1);	}