I need to read some values and variables from a .yml file开发者_开发技巧 and thats it, write them to a String and thats all I need? How would I do this?
Yaml yaml = new Yaml();
Map<String, Object> config = (Map<String, Object>) yaml.load("Your input");
"Your input" can be InputStream, Reader or String.
精彩评论