Class DefaultDictionaryProvider
java.lang.Object
ca.phon.util.resources.URLHandler<IPADictionary>
ca.phon.util.resources.ClassLoaderHandler<IPADictionary>
ca.phon.ipadictionary.DefaultDictionaryProvider
- All Implemented Interfaces:
DictionaryProvider,ResourceHandler<IPADictionary>,Iterable<IPADictionary>
public class DefaultDictionaryProvider
extends ClassLoaderHandler<IPADictionary>
implements DictionaryProvider
-
Field Summary
Fields inherited from class ca.phon.util.resources.ClassLoaderHandler
resourcePaths -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioniterator()Return an iterator for instances of type T.loadFromURL(URL url) Instantiate the object from the given url.Methods inherited from class ca.phon.util.resources.ClassLoaderHandler
addResource, getClassLoader, getResourcePaths, loadResourceFile, removeResource, setClassLoaderMethods inherited from class ca.phon.util.resources.URLHandler
add, getURLS, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DefaultDictionaryProvider
public DefaultDictionaryProvider()
-
-
Method Details
-
loadFromURL
Description copied from class:URLHandlerInstantiate the object from the given url.- Specified by:
loadFromURLin classURLHandler<IPADictionary>- Parameters:
url-- Throws:
IOException
-
iterator
Description copied from interface:ResourceHandlerReturn an iterator for instances of type T.- Specified by:
iteratorin interfaceIterable<IPADictionary>- Specified by:
iteratorin interfaceResourceHandler<IPADictionary>- Overrides:
iteratorin classClassLoaderHandler<IPADictionary>- Returns:
- an iterator providing instances of the parameterized type
-