Package com.logicaldoc.importfolder
Class ImportFolderCache
- java.lang.Object
-
- com.logicaldoc.importfolder.ImportFolderCache
-
public class ImportFolderCache extends Object
Implements a cache of imported documents, basically a importFolder cache is a Map file_path-(file_path,last_import_date,document_id). The storage is done in plain text files organized per file_path hash codes.- Since:
- 3.5
- Author:
- Marco Meschieri - LogicalDOC
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImportFolderCache.CacheEntry
A single entry in the cache
-
Constructor Summary
Constructors Constructor Description ImportFolderCache(File root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
empty()
ImportFolderCache.CacheEntry
get(String filePath)
File
getRoot()
void
put(ImportFolderCache.CacheEntry entry)
-
-
-
Constructor Detail
-
ImportFolderCache
public ImportFolderCache(File root)
-
-
Method Detail
-
getRoot
public File getRoot()
-
get
public ImportFolderCache.CacheEntry get(String filePath) throws IOException
- Throws:
IOException
-
put
public void put(ImportFolderCache.CacheEntry entry) throws IOException
- Throws:
IOException
-
empty
public void empty()
-
-