|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlhmc.plugins.PluginFactory
public class PluginFactory
PluginFactory decides which plugin must be executed depending on the file type of the giben file.
Constructor Summary | |
---|---|
PluginFactory()
|
Method Summary | |
---|---|
int |
figureOutfileType(java.io.File file)
Figures out the type of file. |
int |
figureOutfileType(SmbFile smbFile)
Figures out the type of file. |
Plugin |
getPlugin(int cdType)
Returns the plugin suitable to execute the giben cdType. |
Plugin |
getPlugin(java.net.URL url)
Returns the plugin suitable to execute the giben file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginFactory()
Method Detail |
---|
public Plugin getPlugin(java.net.URL url)
url
- the url file to execute.
public Plugin getPlugin(int cdType)
cdType
- the cdType to execute.
public int figureOutfileType(java.io.File file)
file
- the file to get the type.
public int figureOutfileType(SmbFile smbFile)
smbFile
- the smbfile to get the type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |