Package org.spout.cereal.config.yaml

Examples of org.spout.cereal.config.yaml.YamlConfiguration.load()


  @Override
  public RecipeYaml load(InputStream in) {
    Map<String, Recipe> recipes = new HashMap<String, Recipe>();
    YamlConfiguration config = new YamlConfiguration(in);
    try {
      config.load();
    } catch (ConfigurationException ex) {
      Spout.getLogger().warning("Unable to load recipes.yml: " + ex.getMessage());
    }
    ConfigurationNode recipesNode = config.getChild("recipes");
    for (String key : recipesNode.getKeys(false)) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.