net.didion.jwnl.dictionary
Class AbstractCachingDictionary

java.lang.Object
  extended by net.didion.jwnl.dictionary.Dictionary
      extended by net.didion.jwnl.dictionary.AbstractCachingDictionary
All Implemented Interfaces:
Installable
Direct Known Subclasses:
DatabaseBackedDictionary, FileBackedDictionary

public abstract class AbstractCachingDictionary
extends Dictionary

Extends Dictionary to provide caching of elements.


Method Summary
 void clearCache()
           
 void clearCache(DictionaryElementType elementType)
           
 int getCacheCapacity(DictionaryElementType type)
           
 int getCacheSizes(DictionaryElementType type)
           
 boolean isCachingEnabled()
           
 void setCacheCapacity(DictionaryElementType type, int size)
           
 void setCacheCapacity(int size)
           
 void setCachingEnabled(boolean cachingEnabled)
           
 
Methods inherited from class net.didion.jwnl.dictionary.Dictionary
close, getException, getExceptionIterator, getIndexWord, getIndexWordIterator, getIndexWordIterator, getInstance, getMorphologicalProcessor, getRandomIndexWord, getSenseKey, getSynsetAt, getSynsetIterator, getUsageCount, lookupAllIndexWords, lookupIndexWord, uninstall
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.didion.jwnl.util.factory.Installable
install
 

Method Detail

isCachingEnabled

public boolean isCachingEnabled()

setCachingEnabled

public void setCachingEnabled(boolean cachingEnabled)

getCacheSizes

public int getCacheSizes(DictionaryElementType type)

getCacheCapacity

public int getCacheCapacity(DictionaryElementType type)

setCacheCapacity

public void setCacheCapacity(int size)

setCacheCapacity

public void setCacheCapacity(DictionaryElementType type,
                             int size)

clearCache

public void clearCache()

clearCache

public void clearCache(DictionaryElementType elementType)