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, 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
Methods inherited from interface ca.phon.util.resources.ResourceHandler
iterator
-
Constructor Details
-
JsonSyllabifierProvider
public JsonSyllabifierProvider()Constructor
-
-
Method Details
-
loadFromURL
Description copied from class:URLHandler
Instantiate the object from the given url.- Specified by:
loadFromURL
in classURLHandler<Syllabifier>
- Parameters:
url
-- Throws:
IOException
-