updated comment
This commit is contained in:
@@ -510,12 +510,11 @@ public class FabianUtil {
|
|||||||
try (content) {
|
try (content) {
|
||||||
BufferedWriter out = Files.newBufferedWriter(toFile);
|
BufferedWriter out = Files.newBufferedWriter(toFile);
|
||||||
content.transferTo(out);
|
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));
|
OutputStream out = Files.newOutputStream(Paths.get(path + filename + "." + ending));
|
||||||
content.transferTo(out);
|
content.transferTo(out);
|
||||||
oder mit reader/ writer:
|
|
||||||
BufferedWriter out = Files.newBufferedWriter(Paths.get(path + filename + "." + ending));
|
|
||||||
content.transferTo(out);
|
|
||||||
oder mit byte-array:
|
oder mit byte-array:
|
||||||
Files.write(Paths.get(path + filename + "." + ending), content);
|
Files.write(Paths.get(path + filename + "." + ending), content);
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user