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 ResourceUtils
getInstance(IParameterStore parameterStore)
List<String>
getList(String name)
HashMap<String,List<String>>
getLists()
void
setDictionary(String filePath)
void
setDictionary(String name, HashMap<String,String> dictionary)
void
setList(String filePath)
void
setList(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
-
-