Package adams.data.io
Class FileFormatHandlerUtils
- java.lang.Object
-
- adams.data.io.FileFormatHandlerUtils
-
public class FileFormatHandlerUtils extends Object
Helper class forFileFormatHandler
.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description FileFormatHandlerUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Class>
getHandlerForExtension(Class superclass, String extension)
Returns the list of handlers that can handle the specified extension.static List<Class>
getHandlerForFile(Class superclass, File file)
Returns the list of handlers that can handle the specified file.static List<Class>
getHandlerForFile(Class superclass, String filename)
Returns the list of handlers that can handle the specified file.
-
-
-
Method Detail
-
getHandlerForFile
public static List<Class> getHandlerForFile(Class superclass, String filename)
Returns the list of handlers that can handle the specified file. The classes must implement theFileFormatHandler
interface.- Parameters:
superclass
- the superclass of the handlersfilename
- the file to get handler(s) for- Returns:
- the list of handlers
-
getHandlerForFile
public static List<Class> getHandlerForFile(Class superclass, File file)
Returns the list of handlers that can handle the specified file. The classes must implement theFileFormatHandler
interface.- Parameters:
superclass
- the superclass of the handlersfile
- the file to get handler(s) for- Returns:
- the list of handlers
-
getHandlerForExtension
public static List<Class> getHandlerForExtension(Class superclass, String extension)
Returns the list of handlers that can handle the specified extension. The classes must implement theFileFormatHandler
interface.- Parameters:
superclass
- the superclass of the handlersextension
- the extension to check (no dot)- Returns:
- the list of handlers
-
-