Most Robust way of reading a file or stream using Java (to prevent DoS attacks)

后端 未结 7 446
长情又很酷
长情又很酷 2020-12-04 13:51

Currently I have the below code for reading an InputStream. I am storing the whole file into a StringBuilder variable and processing this string af

7条回答
  •  一生所求
    2020-12-04 14:21

    There is class EntityUtils under Apache httpCore. Use getString() method of this class to get the String from Response content.

提交回复
热议问题