Package io.outofprintmagazine.nlp.utils
Class ResourceUtils
- java.lang.Object
-
- io.outofprintmagazine.nlp.utils.ResourceUtils
-
public class ResourceUtils extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HashMap<String,HashMap<String,String>>getDictionaries()HashMap<String,String>getDictionary(String name)static ResourceUtilsgetInstance(IParameterStore parameterStore)List<String>getList(String name)HashMap<String,List<String>>getLists()voidsetDictionary(String filePath)voidsetDictionary(String name, HashMap<String,String> dictionary)voidsetList(String filePath)voidsetList(String name, List<String> list)
-
-
-
Method Detail
-
getInstance
public static ResourceUtils getInstance(IParameterStore parameterStore) throws IOException
- Throws:
IOException
-
getDictionary
public HashMap<String,String> getDictionary(String name) throws IOException
- Throws:
IOException
-
setDictionary
public void setDictionary(String filePath) throws IOException
- Throws:
IOException
-
getList
public List<String> getList(String name) throws IOException
- Throws:
IOException
-
setList
public void setList(String filePath) throws IOException
- Throws:
IOException
-
-