Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 public synchronized boolean exists(String name) {
   if (view.exists(name) || archive.exists(name)) {
     return true;
   }
   return false;
 }