protected InputStream createInputStream( final long len, final SessionInputBuffer inbuffer) { if (len == ContentLengthStrategy.CHUNKED) { return new ChunkedInputStreamHC4(inbuffer); } else if (len == ContentLengthStrategy.IDENTITY) { return new IdentityInputStreamHC4(inbuffer); } else { return new ContentLengthInputStreamHC4(inbuffer, len); } }