Snapper 1.0 API

org.enhydra.snapper.api
Interface Reader

All Known Implementing Classes:
LuceneReader

public interface Reader

Searcher is a searching service. For example, Lucene index search engine

Author:
Igor Smirnov

Method Summary
 java.util.Vector checkDeleted(java.util.TreeSet filesToCheck)
           
 boolean checkLastModified(java.io.File fileToCheck)
           
 boolean checkLastModified(java.io.File fileToCheck, long modified)
           
 boolean checkLastModified(java.lang.String path, long modified)
           
 void closeReader()
           
 void deleteFile(java.io.File file)
           
 boolean fileExists(java.io.File fileToCheck)
           
 boolean fileExists(java.lang.String path)
           
 int getSize()
           
 long lastModified()
           
 void removeDocuments(java.util.Map modifiedData)
           
 void setUpReader(java.lang.String name)
           
 void unlock()
           
 

Method Detail

setUpReader

public void setUpReader(java.lang.String name)
                 throws java.io.IOException
Throws:
java.io.IOException

unlock

public void unlock()

fileExists

public boolean fileExists(java.io.File fileToCheck)
                   throws java.lang.Exception
Throws:
java.lang.Exception

fileExists

public boolean fileExists(java.lang.String path)
                   throws java.lang.Exception
Throws:
java.lang.Exception

checkLastModified

public boolean checkLastModified(java.io.File fileToCheck)
                          throws java.lang.Exception
Throws:
java.lang.Exception

checkLastModified

public boolean checkLastModified(java.io.File fileToCheck,
                                 long modified)
                          throws java.lang.Exception
Throws:
java.lang.Exception

checkLastModified

public boolean checkLastModified(java.lang.String path,
                                 long modified)
                          throws java.lang.Exception
Throws:
java.lang.Exception

deleteFile

public void deleteFile(java.io.File file)
                throws java.lang.Exception
Throws:
java.lang.Exception

closeReader

public void closeReader()
                 throws java.lang.Exception
Throws:
java.lang.Exception

checkDeleted

public java.util.Vector checkDeleted(java.util.TreeSet filesToCheck)

getSize

public int getSize()

lastModified

public long lastModified()

removeDocuments

public void removeDocuments(java.util.Map modifiedData)
                     throws java.lang.Exception
Throws:
java.lang.Exception

Snapper 1.0 API