4
에서 데이터를 청크 나는 다음과 같은 코드가 있습니다독서 HttpEntity
HttpClient FETCHER
HttpResponse response = FETCHER.execute(host, httpMethod);
임이 같은 문자열에 그 내용을 읽으려고을 :
HttpEntity entity = response.getEntity();
InputStream st = entity.getContent();
StringWriter writer = new StringWriter();
IOUtils.copy(st, writer);
String content = writer.toString();
문제는, 내가 http://www.google.co.in/ 페이지를 가져 오지 때, 전송 인코딩은 청크이며, 나는 첫 번째 청크 만 얻는다. 처음 ""까지 가져옵니다.
전체 출력을 덤프하고 처리 할 수 있도록 모든 덩어리를 한꺼번에 가져 오는 방법은 무엇입니까?