public synchronized Object lockEntry(String entry) throws IOException { if (view.exists(entry)) { return view.lockEntry(entry); } if (archive.exists(entry)) { return archive.lockEntry(entry); } return view.lockEntry(entry); }
public synchronized ArchiveEntry openEntry(String name) throws IOException { if (view.exists(name)) { ArchiveEntry entry = view.openEntry(name); return new ViewEntry(this, name, entry); } if (archive.exists(name)) { ArchiveEntry entry = archive.openEntry(name); return new ViewEntry(this, name, entry); } throw new FileNotFoundException(name); }
public synchronized boolean exists(String name) { if (view.exists(name) || archive.exists(name)) { return true; } return false; }