Faster way of copying data in Java?

后端 未结 4 675
粉色の甜心
粉色の甜心 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:35

    Well since you're using a BufferedInputStream, you aren't reading byte by byte, but rather the size of the buffer. You could just try increasing the buffer size.

提交回复
热议问题