Package me.hsgamer.hscore.expansion.gson
Class GsonExpansionDescriptionLoader
java.lang.Object
me.hsgamer.hscore.expansion.common.factory.InputStreamExpansionDescriptionLoader
me.hsgamer.hscore.expansion.gson.GsonExpansionDescriptionLoader
- All Implemented Interfaces:
Function<JarFile,,ExpansionDescription> MapExpansionDescriptionLoader
The factory that loads the
ExpansionDescription from the json file of the jar file-
Constructor Summary
ConstructorsConstructorDescriptionCreate a newGsonExpansionDescriptionLoaderwith the default description file nameGsonExpansionDescriptionLoader(String descriptionFileName) Create a newGsonExpansionDescriptionLoader -
Method Summary
Modifier and TypeMethodDescriptionapplyAsMap(InputStream inputStream) Load the information map from the input streamMethods inherited from class me.hsgamer.hscore.expansion.common.factory.InputStreamExpansionDescriptionLoader
applyAsMapMethods 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
-
GsonExpansionDescriptionLoader
Create a newGsonExpansionDescriptionLoader- Parameters:
descriptionFileName- the name of the description file
-
GsonExpansionDescriptionLoader
public GsonExpansionDescriptionLoader()Create a newGsonExpansionDescriptionLoaderwith the default description file name
-
-
Method Details
-
applyAsMap
Description copied from class:InputStreamExpansionDescriptionLoaderLoad the information map from the input stream- Specified by:
applyAsMapin classInputStreamExpansionDescriptionLoader- Parameters:
inputStream- the input stream- Returns:
- the information map
-