updated comment

This commit is contained in:
fszimnau
2025-10-01 11:26:01 +02:00
parent c6a346df00
commit f514e1c6f8

View File

@@ -510,12 +510,11 @@ public class FabianUtil {
try (content) {
BufferedWriter out = Files.newBufferedWriter(toFile);
content.transferTo(out);
/* varianten: selber pipen:
/* varianten: mit streams:
Files.copy(content, Paths.get(path + filename + "." + ending), StandardCopyOption.REPLACE_EXISTING);
oder selber pipen, wie beim Reader/ writer:
OutputStream out = Files.newOutputStream(Paths.get(path + filename + "." + ending));
content.transferTo(out);
oder mit reader/ writer:
BufferedWriter out = Files.newBufferedWriter(Paths.get(path + filename + "." + ending));
content.transferTo(out);
oder mit byte-array:
Files.write(Paths.get(path + filename + "." + ending), content);
*/