Snapper 1.1 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

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

unlock

void unlock()

fileExists

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

fileExists

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

checkLastModified

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

checkLastModified

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

checkLastModified

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

deleteFile

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

closeReader

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

checkDeleted

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

getSize

int getSize()

lastModified

long lastModified()

removeDocuments

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

Snapper 1.1 API