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 java.lang.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
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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,
java.lang.String name,
java.io.File modFile)
throws InvalidFormatException,
java.io.IOException
- Throws:
InvalidFormatException
java.io.IOException
getModuleLoader
public static ModuleLoader getModuleLoader(int type,
java.lang.String name,
java.net.URL modURL)
throws InvalidFormatException,
java.io.IOException
- Throws:
InvalidFormatException
java.io.IOException
getModuleLoader
public static ModuleLoader getModuleLoader(java.net.URL modURL)
throws InvalidFormatException,
java.io.IOException
- Throws:
InvalidFormatException
java.io.IOException
getModuleLoader
public static ModuleLoader getModuleLoader(java.io.File modFile)
throws InvalidFormatException,
java.io.IOException
- Throws:
InvalidFormatException
java.io.IOException
getModuleLoader
public static ModuleLoader getModuleLoader(java.io.InputStream in,
java.lang.String modFile)
throws InvalidFormatException,
java.io.IOException
- Throws:
InvalidFormatException
java.io.IOException
getModuleLoader
public static ModuleLoader getModuleLoader(java.lang.String name,
byte[] data)
throws InvalidFormatException,
java.io.IOException
- Throws:
InvalidFormatException
java.io.IOException
getModuleLoader
public static ModuleLoader getModuleLoader(int type,
java.lang.String name,
byte[] data)
throws InvalidFormatException,
java.io.IOException
- Throws:
InvalidFormatException
java.io.IOException
getModule
public abstract Module getModule()
- Returns:
- the module loaded by a module loader.