/** * @param encoding File encoding to write. If null, platform default encoding is chosen. * * @deprecated Use {@link #AtomicFileWriter(Path, Charset)} */ @Deprecated public AtomicFileWriter(@Nonnull File f, @Nullable String encoding) throws IOException { this(toPath(f), encoding == null ? Charset.defaultCharset() : Charset.forName(encoding)); }