public static BufferedWriter newWriter(Path self,boolean append) throws IOException {
  if (append) {
    return Files.newBufferedWriter(self,Charset.defaultCharset(),CREATE,APPEND);
  }
  return Files.newBufferedWriter(self,Charset.defaultCharset());
}

public static BufferedWriter newWriter ( Path self , boolean append ) throws IOException { if ( append ) { return Files . newBufferedWriter ( self , Charset . defaultCharset ( ) , CREATE , APPEND ) ; } return Files . newBufferedWriter ( self , Charset . defaultCharset ( ) ) ; }
creates a buffered writer for this file , optionally appending to the existing file content .
