Class FileWriterWithEncoding.Builder

All Implemented Interfaces:
IOSupplier<FileWriterWithEncoding>
Enclosing class:
FileWriterWithEncoding

Builds a new FileWriterWithEncoding.

Using a CharsetEncoder:


 FileWriterWithEncoding w = FileWriterWithEncoding.builder()
   .setPath(path)
   .setAppend(false)
   .setCharsetEncoder(StandardCharsets.UTF_8.newEncoder())
   .get();
 

Using a Charset:


 FileWriterWithEncoding w = FileWriterWithEncoding.builder()
   .setPath(path)
   .setAppend(false)
   .setCharsetEncoder(StandardCharsets.UTF_8)
   .get();
 
Since:
2.12.0
See Also: