snakeyaml.jar

SnakeYAML is a YAML parser for the java language.
Feature: Full YAML 1.1 parser. In particular, SnakeYAML can parse all examples from the specification; supports Unicode, including UTF-8/UTF-16 input/output; provides a high-level API for serializing and deserializing native Java objects; supports YAML type libraries of all types; more rational error messages.
SnakeYA requires Java 5 or higher. The current stable version is: 1.5 .
Example code:
Yaml yaml = new Yaml();
String document = "\n- Hesperiidae\n- Papilionidae\n- Apatelodidae\n- Epiplemidae";
List<String> list = (List<String>) yaml.load(document );
System.out.println(list);

['Hesperiidae', 'Papilionidae', 'Apatelodidae', 'Epiplemidae']

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326664416&siteId=291194637
jar