|
|
|
@ -3,6 +3,8 @@ package com.xypower.common;
|
|
|
|
|
import android.text.TextUtils;
|
|
|
|
|
import android.util.Log;
|
|
|
|
|
|
|
|
|
|
import org.w3c.dom.Text;
|
|
|
|
|
|
|
|
|
|
import java.io.Closeable;
|
|
|
|
|
import java.io.File;
|
|
|
|
|
import java.io.FileOutputStream;
|
|
|
|
@ -50,7 +52,7 @@ public class FileDownloader {
|
|
|
|
|
|
|
|
|
|
byte[] buf = new byte[8 * 1024];
|
|
|
|
|
|
|
|
|
|
if(encoding.equals("gzip")) {
|
|
|
|
|
if(TextUtils.equals(encoding, "gzip")) {
|
|
|
|
|
gZIPInputStream = new GZIPInputStream(is);
|
|
|
|
|
is = gZIPInputStream;
|
|
|
|
|
}
|
|
|
|
|