Faster way of copying data in Java?

后端 未结 4 669
粉色の甜心
粉色の甜心 2021-02-06 17:00

I have been given a task of copying data from a server. I am using BufferedInputStream and output stream to copy the data and I am doing it byte by byte. Even thoug

4条回答
  •  再見小時候
    2021-02-06 17:45

    I would suggest to use FileUtils from org.apache.commons.io. It has enough utility methods to perform file operations.

    org.apache.commons.io.FileUtils API Here

提交回复
热议问题