Class InputStreamExpansionDescriptionLoader
java.lang.Object
me.hsgamer.hscore.expansion.common.factory.InputStreamExpansionDescriptionLoader
- All Implemented Interfaces:
Function<JarFile,,ExpansionDescription> MapExpansionDescriptionLoader
- Direct Known Subclasses:
BukkitConfigExpansionDescriptionLoader,GsonExpansionDescriptionLoader,PropertiesExpansionDescriptionLoader
public abstract class InputStreamExpansionDescriptionLoader
extends Object
implements MapExpansionDescriptionLoader
The factory that loads the
ExpansionDescription from the InputStream of the jar file-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInputStreamExpansionDescriptionLoader(String descriptionFileName) Create a newInputStreamExpansionDescriptionLoader -
Method Summary
Modifier and TypeMethodDescriptionapplyAsMap(InputStream inputStream) Load the information map from the input streamapplyAsMap(JarFile jarFile) Load the information map from the jar fileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.hsgamer.hscore.expansion.common.factory.MapExpansionDescriptionLoader
apply
-
Constructor Details
-
InputStreamExpansionDescriptionLoader
Create a newInputStreamExpansionDescriptionLoader- Parameters:
descriptionFileName- the name of the description file
-
-
Method Details
-
applyAsMap
Load the information map from the input stream- Parameters:
inputStream- the input stream- Returns:
- the information map
-
applyAsMap
Description copied from interface:MapExpansionDescriptionLoaderLoad the information map from the jar file- Specified by:
applyAsMapin interfaceMapExpansionDescriptionLoader- Parameters:
jarFile- the jar file- Returns:
- the information map
-