Class URLHandler<T>
java.lang.Object
ca.phon.util.resources.URLHandler<T>
- All Implemented Interfaces:
ResourceHandler<T>,Iterable<T>
- Direct Known Subclasses:
ClassLoaderHandler,URLListHandler
Load resources from URLs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the given url to the handler.getURLS()Live list to theURLs loaded by this handler.iterator()Return an iterator for instances of type T.abstract TloadFromURL(URL url) Instantiate the object from the given url.voidRemove the given url from the loaderMethods 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
-
URLHandler
public URLHandler()Constructor -
URLHandler
-
-
Method Details
-
add
-
remove
Remove the given url from the loader -
getURLS
-
loadFromURL
Instantiate the object from the given url.- Parameters:
url-- Throws:
IOException
-
iterator
Description copied from interface:ResourceHandlerReturn an iterator for instances of type T.
-