KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > snapper > api > Reader


1 package org.enhydra.snapper.api;
2
3
4 import java.io.*;
5 import java.util.Map JavaDoc;
6 import java.util.TreeSet JavaDoc;
7 import java.util.Vector JavaDoc;
8
9
10 /**
11  * Searcher is a searching service. For example, Lucene index search engine
12  *
13  * @author Igor Smirnov
14  */

15
16 public interface Reader {
17     
18
19     public void setUpReader(String JavaDoc name) throws IOException;
20     public boolean fileExists(File fileToCheck) throws Exception JavaDoc;
21     public boolean fileExists(String JavaDoc path) throws Exception JavaDoc;
22     public boolean checkLastModified(File fileToCheck) throws Exception JavaDoc;
23     public boolean checkLastModified(File fileToCheck, long modified) throws Exception JavaDoc;
24     public boolean checkLastModified(String JavaDoc path, long modified) throws Exception JavaDoc;
25     public void deleteFile(File file) throws Exception JavaDoc;
26     public void closeReader() throws Exception JavaDoc;
27     //public void delete(int docNum) throws IOException;
28
public void checkDeleted(TreeSet JavaDoc filesToCheck);
29     //public Document document(int n) throws IOException;
30
int getSize();
31     public long lastModified();
32     public void removeDocuments(Map JavaDoc modifiedData) throws Exception JavaDoc;
33     
34     
35 }
36
37
38
39   
40
Popular Tags