class YamlParser extends ComponentSupport {

  public void write(final OutputStream os, final ChartIndex index) {
    try (OutputStreamWriter writer = new OutputStreamWriter(os)) {
      String result = getYamlContent(index);
      writer.write(result);
    }
    catch (IOException ex) {
      log.error("Unable to write to OutputStream for index.yaml", ex);
    }
  }

}