Package org.apache.hop.ui.hopgui.file
Class HopFileTypeRegistry
- java.lang.Object
-
- org.apache.hop.ui.hopgui.file.HopFileTypeRegistry
-
public class HopFileTypeRegistry extends Object
This class contains all the available Hop File types
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IHopFileTypefindHopFileType(String filename)This method first tries to find a HopFile by looking at the extension.IHopFileTypegetFileTypeByName(String name)List<String>getFileTypeNames()List<IHopFileType>getFileTypes()String[]getFilterExtensions()Get All the filter extensions of all the HopFile pluginsString[]getFilterNames()Get All the filter names of all the HopFile pluginsstatic HopFileTypeRegistrygetInstance()voidregisterHopFile(IHopFileType hopFileTypeInterface)
-
-
-
Method Detail
-
getInstance
public static final HopFileTypeRegistry getInstance()
-
getFileTypes
public List<IHopFileType> getFileTypes()
-
registerHopFile
public void registerHopFile(IHopFileType hopFileTypeInterface)
-
findHopFileType
public IHopFileType findHopFileType(String filename) throws HopException
This method first tries to find a HopFile by looking at the extension. If none can be found the content is looked at by each IHopFileType- Parameters:
filename- The filename to search with- Returns:
- The IHopFileType we can use to open the file itself.
- Throws:
HopException
-
getFilterExtensions
public String[] getFilterExtensions()
Get All the filter extensions of all the HopFile plugins- Returns:
- all the file extensions
-
getFilterNames
public String[] getFilterNames()
Get All the filter names of all the HopFile plugins- Returns:
- all the file names
-
getFileTypeByName
public IHopFileType getFileTypeByName(String name)
-
-