APISonar


com.google.common.io.Files.newWriterSupplier

> com > google > common > io > Files > newWriterSupplier
com APIs google APIs common APIs io APIs Files APIs newWriterSupplier APIs

Example 1
protected static void writeLabelBindings(File dictOut, ARFFModel arffModel, String delimiter, boolean jsonDictonary)
      throws IOException {
    try (Writer writer = Files.newWriterSupplier(dictOut, Charsets.UTF_8, true).getOutput()) {
      if (jsonDictonary) {
        writeLabelBindingsJSON(writer, arffModel);
      } else {
        writeLabelBindings(writer, arffModel, delimiter);
      }
    }
  }