docs: public void generateOutput(String outputFileName) throws IOException {
          FileOutputStream stream = null;
          OutputStreamWriter writer = null;
          try {
              stream = new FileOutputStream(outputFileName);
              writer = new OutputStreamWriter(stream, charset);
              generateOutput(writer);
          } finally {
              if (writer != null) {
                  writer.close();
              }
              if (stream != null) {
                  stream.close();
              }
          }
      }