Package me.hsgamer.hscore.addon.loader
Class InputStreamAddonDescriptionLoader
java.lang.Object
me.hsgamer.hscore.addon.loader.InputStreamAddonDescriptionLoader
- All Implemented Interfaces:
AddonDescriptionLoader,MapAddonDescriptionLoader
- Direct Known Subclasses:
PropertiesAddonDescriptionLoader
public abstract class InputStreamAddonDescriptionLoader
extends Object
implements MapAddonDescriptionLoader
The simplified
AddonDescriptionLoader that loads the AddonDescription from the InputStream of the jar file-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInputStreamAddonDescriptionLoader(String addonFileName) Create a newInputStreamAddonDescriptionLoader -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.hsgamer.hscore.addon.loader.MapAddonDescriptionLoader
load
-
Constructor Details
-
InputStreamAddonDescriptionLoader
Create a newInputStreamAddonDescriptionLoader- Parameters:
addonFileName- the addon file name
-
-
Method Details
-
loadAsMap
public abstract Map<String,Object> loadAsMap(InputStream inputStream) throws IOException, InvalidAddonDescription Load the information map from the input stream- Parameters:
inputStream- the input stream- Returns:
- the information map
- Throws:
IOException- if an I/O error occursInvalidAddonDescription
-
loadAsMap
Description copied from interface:MapAddonDescriptionLoaderLoad the information map from the jar file- Specified by:
loadAsMapin interfaceMapAddonDescriptionLoader- Parameters:
jarFile- the jar file- Returns:
- the information map
- Throws:
IOException- if an I/O error occursInvalidAddonDescription- if the information map is invalid
-