if ("chunked".equals(readHeader.get("Transfer-Encoding"))) {
if (readHeader.get("Content-Length") != null) { is = new FixedSizeInputStream(is, Long.parseLong(readHeader.get("Content-Length").toString())); } else if ("chunked".equals(readHeader.get("Transfer-Encoding"))) {
	private static InputStream createInputStream(Map readHeader, InputStream is) throws IOException {        if ("chunked".equals(readHeader.get("Transfer-Encoding"))) {            is = new ChunkedInputStream(is);        } else if (readHeader.get("Content-Length") != null) {            is = new FixedSizeInputStream(is, Long.parseLong(readHeader.get("Content-Length").toString()));            if ("gzip".equals(readHeader.get("Content-Encoding"))) {                DebugLog.log("using GZIP encoding to read server responce");                is = new GZIPInputStream(is);            }        }        return is;    }