Class JsonSyllabifierProvider
- All Implemented Interfaces:
SyllabifierProvider,ResourceHandler<Syllabifier>,Iterable<Syllabifier>
public class JsonSyllabifierProvider
extends ClassLoaderHandler<Syllabifier>
implements SyllabifierProvider
Interface used by
ServiceLoader to automatically find resource handlers for syllabifiers.
JSON syllabifiers are read from a list of JSON files found at resource path 'syllabiifer/json.list'.-
Field Summary
Fields inherited from class ca.phon.util.resources.ClassLoaderHandler
resourcePaths -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadFromURL(URL url) Instantiate the object from the given url.Methods inherited from class ca.phon.util.resources.ClassLoaderHandler
addResource, getClassLoader, getResourcePaths, iterator, 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, spliteratorMethods inherited from interface ca.phon.util.resources.ResourceHandler
iterator
-
Constructor Details
-
JsonSyllabifierProvider
public JsonSyllabifierProvider()Constructor
-
-
Method Details
-
loadFromURL
Description copied from class:URLHandlerInstantiate the object from the given url.- Specified by:
loadFromURLin classURLHandler<Syllabifier>- Parameters:
url-- Throws:
IOException
-