RepeatableInputStreamRequestEntity(BCSHttpRequest paramBCSHttpRequest) {
		setChunked(false);

		long l = -1L;
		try {
			String str1 = (String) paramBCSHttpRequest.getHeaders().get("Content-Length");
			if (str1 != null)
				l = Long.parseLong(str1);
		} catch (NumberFormatException localNumberFormatException) {
			log.warn("Unable to parse content length from request.  Buffering contents in memory.");
		}

		String str2 = (String) paramBCSHttpRequest.getHeaders().get("Content-Type");

		this.inputStreamRequestEntity = new InputStreamEntity(paramBCSHttpRequest.getContent(), l);
		this.inputStreamRequestEntity.setContentType(str2);
		this.content = paramBCSHttpRequest.getContent();

		setContent(this.content);
		setContentType(str2);
		setContentLength(l);
	}