public boolean isLocked() { return fileExists(name); } };
public boolean fileExists(String name) throws IOException { return ramDir.fileExists(name); }
public boolean fileExists(String name) throws IOException { return ramDir.fileExists(name); }
public boolean obtain() throws IOException { synchronized (files) { if (!fileExists(name)) { createFile(name).close(); return true; } return false; } } public void release() {