Package ca.phon.ipadictionary
Class DefaultDictionaryProvider
java.lang.Object
ca.phon.util.resources.URLHandler<T>
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
-
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, setClassLoader
Methods inherited from class ca.phon.util.resources.URLHandler
add, getURLS, remove
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DefaultDictionaryProvider
public DefaultDictionaryProvider()
-
-
Method Details
-
loadFromURL
Description copied from class:URLHandler
Instantiate the object from the given url.- Specified by:
loadFromURL
in classURLHandler<IPADictionary>
- Throws:
IOException
-
iterator
Description copied from interface:ResourceHandler
Return an iterator for instances of type T.- Specified by:
iterator
in interfaceIterable<IPADictionary>
- Specified by:
iterator
in interfaceResourceHandler<IPADictionary>
- Overrides:
iterator
in classClassLoaderHandler<IPADictionary>
- Returns:
- an iterator providing instances of the parameterized type
-