I’m sure that using the copy command of a particular OS will be faster or at least as fast as a simple self-recording solution. The particular OS command probably uses a reasonable buffer size and other optimizations that you would otherwise have to figure out yourself.
Edit:
xx is correct, you should not invoke the copy command directly. I thought Java already has a copy method like File.copy () or something else, but I couldn't find anything, even in JDIC. So Apo Commons IO is probably the way to go.
source
share