В чем разница между IOUtils.toString и EntityUtils.toString.Какой из приведенных ниже должен использоваться для чтения ответной сущности и почему?
1) CloseableHttpResponse response = httpclient.execute(httpget);
data= EntityUtils.toString(response.getEntity());
ИЛИ
2) CloseableHttpResponse response = httpclient.execute(httpget);
data = IOUtils.toString(response.getEntity().getContent(),
StandardCharsets.UTF_8);