开发者

Walkthrough of SnakeYAML in Java

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜