Skip to main content

Baptiste Wicht: File Copy in Java – Benchmark

Baptiste Wicht researched File Copy in Java – Benchmark:

Yesterday I wondered if the copyFile method in JTheque Utils was the best method or if I need to change. So I decided to do a benchmark. So I searched all the methods to copy a File in Java, even the bad ones and found the following methods: 1. Naive Streams Copy : Open two streams, one to read, one to write and transfer the content byte by byte...

Community: General