static private void copyStream(final InputStream content,final OutputStream outstr) throws IOException {
  final byte[] buf=new byte[GZIP_BUFFER];
  while (true) {
    final int rdlen=content.read(buf);
    if (rdlen <= 0) {
      break;
    }
    outstr.write(buf,0,rdlen);
  }
}

static private void copyStream ( final InputStream content , final OutputStream outstr ) throws IOException { final byte [ ] buf = new byte [ GZIP_BUFFER ] ; while ( true ) { final int rdlen = content . read ( buf ) ; if ( rdlen <= 0 ) { break ; } outstr . write ( buf , 0 , rdlen ) ; } }
copy the input stream to the output stream .
