com.vwp.sound.mod.modplay.loader
Class ModuleLoader
java.lang.Object
com.vwp.sound.mod.modplay.loader.ModuleLoader
- Direct Known Subclasses:
- ITLoader, ModLoader, S3MLoader, STMLoader, XMLoader, ZippedModuleLoader
public abstract class ModuleLoader
- extends Object
Must be extended by classes that load modules
- Author:
- torkjel
|
Field Summary |
static int |
IT
|
static int |
MOD
|
static int |
S3M
|
static int |
STM
|
static int |
UNKNOWN
|
static int |
XM
|
static int |
ZIP
|
UNKNOWN
public static final int UNKNOWN
- See Also:
- Constant Field Values
MOD
public static final int MOD
- See Also:
- Constant Field Values
XM
public static final int XM
- See Also:
- Constant Field Values
S3M
public static final int S3M
- See Also:
- Constant Field Values
STM
public static final int STM
- See Also:
- Constant Field Values
IT
public static final int IT
- See Also:
- Constant Field Values
ZIP
public static final int ZIP
- See Also:
- Constant Field Values
ModuleLoader
public ModuleLoader()
getModuleLoader
public static ModuleLoader getModuleLoader(int type,
String name,
File modFile)
throws InvalidFormatException,
IOException
- Throws:
InvalidFormatException
IOException
getModuleLoader
public static ModuleLoader getModuleLoader(int type,
String name,
URL modURL)
throws InvalidFormatException,
IOException
- Throws:
InvalidFormatException
IOException
getModuleLoader
public static ModuleLoader getModuleLoader(URL modURL)
throws InvalidFormatException,
IOException
- Throws:
InvalidFormatException
IOException
getModuleLoader
public static ModuleLoader getModuleLoader(File modFile)
throws InvalidFormatException,
IOException
- Throws:
InvalidFormatException
IOException
getModuleLoader
public static ModuleLoader getModuleLoader(InputStream in,
String modFile)
throws InvalidFormatException,
IOException
- Throws:
InvalidFormatException
IOException
getModuleLoader
public static ModuleLoader getModuleLoader(String name,
byte[] data)
throws InvalidFormatException,
IOException
- Throws:
InvalidFormatException
IOException
getModuleLoader
public static ModuleLoader getModuleLoader(int type,
String name,
byte[] data)
throws InvalidFormatException,
IOException
- Throws:
InvalidFormatException
IOException
getModule
public abstract Module getModule()
- Returns:
- the module loaded by a module loader.