DebugLog.log("transfer encoding: " + readHeader.get("Transfer-Encoding")); DebugLog.log("content encoding : " + readHeader.get("Content-Encoding")); DebugLog.log("content length   : " + readHeader.get("Content-Length"));
	private static InputStream createInputStream(Map readHeader, InputStream is) throws IOException {        DebugLog.log("transfer encoding: " + readHeader.get("Transfer-Encoding"));        DebugLog.log("content encoding : " + readHeader.get("Content-Encoding"));        DebugLog.log("content length   : " + readHeader.get("Content-Length"));        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;    }