Class FileHandler<T>
java.lang.Object
ca.phon.util.resources.FileHandler<T>
- All Implemented Interfaces:
ResourceHandler<T>,Iterable<T>
- Direct Known Subclasses:
FolderHandler
A library handler which allow for loading a list of explicit
files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a file to the handlergetFiles()Live list of theFiles loaded by this handler.iterator()Return an iterator for instances of type T.abstract TloadFromFile(File f) Abstract method for loading the given file as an instance of the parameterized type.voidremoveFile(File f) Remove a file from the handlerMethods 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
-
FileHandler
public FileHandler()
-
-
Method Details
-
iterator
Description copied from interface:ResourceHandlerReturn an iterator for instances of type T. -
addFile
-
removeFile
-
getFiles
-
loadFromFile
Abstract method for loading the given file as an instance of the parameterized type.- Parameters:
f-- Throws:
IOException
-