public class CacheIO extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
DocumentCache |
getDocumentCache()
get document cache
|
Map<Integer,Map<String,Set<Integer>>> |
getIgnoredMatches()
get ignored matches
|
List<org.languagetool.openoffice.ResultCache> |
getParagraphsCache()
get paragraph caches (results for check of paragraphes)
|
boolean |
readAllCaches(Configuration config,
MultiDocumentsHandler mDocHandler)
read all caches (document cache, all result caches) from cache file if it exists
|
void |
resetAllCache()
set all caches to null
|
void |
saveCaches(DocumentCache docCache,
List<org.languagetool.openoffice.ResultCache> paragraphsCache,
SingleDocument.IgnoredMatches ignoredMatches,
Configuration config,
MultiDocumentsHandler mDocHandler)
save all caches if the document exceeds the defined minimum of paragraphs
|
public void saveCaches(DocumentCache docCache, List<org.languagetool.openoffice.ResultCache> paragraphsCache, SingleDocument.IgnoredMatches ignoredMatches, Configuration config, MultiDocumentsHandler mDocHandler)
public boolean readAllCaches(Configuration config, MultiDocumentsHandler mDocHandler)
public DocumentCache getDocumentCache()
public List<org.languagetool.openoffice.ResultCache> getParagraphsCache()
public Map<Integer,Map<String,Set<Integer>>> getIgnoredMatches()
public void resetAllCache()