public File getFile(IliasFile iliasFile) { final String location = localFileLocations.get(iliasFile.getSize()); if (location == null) { return null; } return new File(location); }
private String getContainingFolder(IliasFile iliasFile) { final int size = iliasFile.getSize(); String path = localFileLocations.get(size); if (path == null) { return null; } path = path.substring(0, path.lastIndexOf(File.separator)); return path; }
public void addIliasFile(IliasFile iliasFile, String path) { localFileLocations.put(iliasFile.getSize(), path); }
public boolean contains(IliasFile iliasFile) { return localFileLocations.containsKey(iliasFile.getSize()); }