Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. private List<String> readContextFromFile(String file) {
  2.  
  3. List<String> context = new ArrayList<>();
  4. try {
  5. InputStream in = getClass().getClassLoader().getResourceAsStream(file);
  6. Map<String, ArrayList> input = objectMapper.readValue(in, HashMap.class);
  7.  
  8. context = input.get("@context");
  9. } catch (IOException e) {
  10. LOGGER.error("Error reading value {}", e.getMessage());
  11. }
  12. return context;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement