ByteArrayOutputStream bos = new ByteArrayOutputStream(64000);
ByteBufferOutputStream bos = new ByteBufferOutputStream(64000);
    private void loadExternalGZip(URL url) {        InputStream ins;        try {            ins = url.openStream();        } catch (IOException ex) {            LOG.error("Can not open url '" + url + "'.", ex);            return;        }        if (ins == null) {            return;        }        ByteArrayOutputStream bos = new ByteArrayOutputStream(64000);        try {            byte buf[] = new byte[4096];            for (;;) {                int ret = ins.read(buf, 0, buf.length);                if (ret < 0) {                    break;                }                bos.write(buf, 0, ret);            }            bos.close();            sourceBufferExternalGZip = bos.toByteArray();        } catch (IOException ex) {            LOG.error("Can not load content of url '" + url + "'.", ex);        } finally {            try {                ins.close();            } catch (IOException e) {            }        }    }