yaml/src/main/java/com/opentext/ia/yaml/core/YamlMap.java
public static YamlMap from(File yaml) throws IOException {
    assertNotNull(yaml);
    if (!yaml.isFile()) {
      return new YamlMap();
    }
    try (InputStream input = Files.newInputStream(yaml.toPath())) {
      return from(input);
    }
  }
public static YamlMap from(File yaml) throws IOException {
    assertNotNull(yaml);
    if (!yaml.isFile()) {
      return new YamlMap();
    }
    try (InputStream input = Files.newInputStream(yaml.toPath())) {
      return from(input);
    }
  }
public static YamlMap from ( File yaml ) throws IOException { assertNotNull ( yaml ) ; if ( ! yaml . isFile ( ) ) { return new YamlMap ( ) ; } try ( InputStream input = Files . newInputStream ( yaml . toPath ( ) ) ) { return from ( input ) ; } }
Parses the given YAML.
@param yaml The YAML file to parse
@return A <code>YamlMap</code> corresponding to the provided YAML file, or an empty <code>YamlMap</code> if the
file does not exist
@throws IOException When an I/O error occurs
Parses the given YAML .