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

后端 未结 7 442
长情又很酷
长情又很酷 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.

    0 讨论(0)
提交回复
热议问题