Lines Matching refs:entity
2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/impl/entity/EntityDeserializer.java $
32 package org.apache.http.impl.entity;
40 import org.apache.http.entity.BasicHttpEntity;
41 import org.apache.http.entity.ContentLengthStrategy;
49 * Default implementation of an entity deserializer.
51 * This entity deserializer currently supports only "chunked" and "identitiy" transfer-coding</a>
80 BasicHttpEntity entity = new BasicHttpEntity();
84 entity.setChunked(true);
85 entity.setContentLength(-1);
86 entity.setContent(new ChunkedInputStream(inbuffer));
88 entity.setChunked(false);
89 entity.setContentLength(-1);
90 entity.setContent(new IdentityInputStream(inbuffer));
92 entity.setChunked(false);
93 entity.setContentLength(len);
94 entity.setContent(new ContentLengthInputStream(inbuffer, len));
99 entity.setContentType(contentTypeHeader);
103 entity.setContentEncoding(contentEncodingHeader);
105 return entity;