1 package org.enhydra.snapper.api; 2 3 4 import java.io.*; 5 import java.util.Map ; 6 import java.util.TreeSet ; 7 import java.util.Vector ; 8 9 10 15 16 public interface Reader { 17 18 19 public void setUpReader(String name) throws IOException; 20 public boolean fileExists(File fileToCheck) throws Exception ; 21 public boolean fileExists(String path) throws Exception ; 22 public boolean checkLastModified(File fileToCheck) throws Exception ; 23 public boolean checkLastModified(File fileToCheck, long modified) throws Exception ; 24 public boolean checkLastModified(String path, long modified) throws Exception ; 25 public void deleteFile(File file) throws Exception ; 26 public void closeReader() throws Exception ; 27 public void checkDeleted(TreeSet filesToCheck); 29 int getSize(); 31 public long lastModified(); 32 public void removeDocuments(Map modifiedData) throws Exception ; 33 34 35 } 36 37 38 39 40 | Popular Tags |