From 9885900abc43d257559eb85459d1103792cbc2fc Mon Sep 17 00:00:00 2001 From: lyy <511455842@qq.com> Date: Thu, 13 Oct 2016 20:39:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=A1=E5=81=9A=E5=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2.10/taskArtifacts/cache.properties.lock | Bin 17 -> 17 bytes .gradle/2.10/taskArtifacts/fileHashes.bin | Bin 979393 -> 979785 bytes .gradle/2.10/taskArtifacts/fileSnapshots.bin | Bin 17822611 -> 18023653 bytes .../2.10/taskArtifacts/outputFileStates.bin | Bin 29072 -> 29102 bytes .gradle/2.10/taskArtifacts/taskArtifacts.bin | Bin 276766 -> 279966 bytes .idea/misc.xml | 2 +- .idea/vcs.xml | 6 ++++++ .../downloadutil/util/DownLoadUtil.java | 5 +++-- 8 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 .idea/vcs.xml diff --git a/.gradle/2.10/taskArtifacts/cache.properties.lock b/.gradle/2.10/taskArtifacts/cache.properties.lock index 7319ef387a326090edc1a31592ce8f6d506133e1..8028ab662b94459bcc4da05920842f6d377edd10 100644 GIT binary patch literal 17 WcmZQ(?b+zIzSG^40R$MQe*^$4lmy)X literal 17 WcmZQ(?b+zIzSG^40R$MQY5@Q$$pjPt diff --git a/.gradle/2.10/taskArtifacts/fileHashes.bin b/.gradle/2.10/taskArtifacts/fileHashes.bin index 847b73d11ee56d51eb1a169b1e7343760f6e82ec..8a7f154fee6a3c71e4fe5bc18800fc14e2a29252 100644 GIT binary patch delta 9049 zcmYLPd0f=zEtkcxl|M-`X1APOp9A0{BN(lXQ^b4h*-hOLJ zm~*7&ul9Yb!zTCXmAvod)mHr@%{A20#r>8GJ@yw+9oVfu3nr9olUumQeUFuPo5;W1MJg@H))ZlF> zg7a6yF!8j}mRm7gJfz^lUv2b&NTGzeN|;7#khG-L-X;`>) zIt5j+VM?$ko~=rODUM+tSnucHe1Js?mSU^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QmnyRe28@@Lpj!C13p3pDp7@x zu@Re4jZd%{Td)KPF_kmp)i4*PXe(&|8M?toC)4V}kTIeJuIqqo$fB1nz{y zE_{wJup4{uC2C;!2@$z$9CCsVWuPS2Yt=C^{OBqj(9rK(Gf34yoD{dUMB*=?g2hd#trrojES2aBrIeEl6)OyzIztFWB`N037ZQ{?z1pzZ7h7jw>iMWL38p6 U4?Y3IeGg){T$gu&C}I!;0Ao28r~m)} delta 31 ncmZ4Ym~p~m#trroj0u|^BrIe$PcXU8!YH(`kbiT4hl3^n!E*}; diff --git a/.gradle/2.10/taskArtifacts/taskArtifacts.bin b/.gradle/2.10/taskArtifacts/taskArtifacts.bin index 7bb5790b2916a03a00c8195307c90f6d0453b798..1719f5d58c4c83f0fc114dcb5efd240377e8fb2d 100644 GIT binary patch delta 721 zcmXAme=L-79LJyU_xqf?CeC$!T;z~B9`d6IiDZ@#O*T_1?sPNSWY)A(ZLOwuoPOv`_1yK@-k;CwkI%2~_tR-{>1-4=xdm(` zYzERO&iC4xm^5(lzMX;d02hav!@T)Ku93@&XwD9n<{Tghc*CARba->Dw=;Rc$6{{a^mQ?3|5NZ|-yawn5FHyPqXSh-hNf#!Sf=?~_yx((Ie$LkXR zlW%U_V+T{Wx6sXL>DVL!LfSMMjSVu$$D!MRle1D?RjN`el$Ga8RHydPv+L0i2iM%4{9cLT*(E914Oy)e@E|ri!Q;4g z5CpLzKhOwid71;{->#=*fTd(`?-9=iWVDX$T8Q)i{5y8~><-4Ey`%k|<@%kgqqw^Q z#$$t*eLr`sP6h(}@*xPo4&|^AudP5=oIV0l@M1X>9qnm~h#~b-Qha@Q_jNGK3TekX9IEja1uv)>5vwi834vFwn zJ>;?95GhA&1|s<+B@o%VktaAEvkBIzm&41#Hj7NvF*OTT;k;I-nKIPMI&pUtIE-KP bBNy7VwjXOPKx_l{tp!8?CNn1tLbBi=MUDYK delta 446 zcmbQ&EjaI!zywiAZUzuw^wb2BOTlc0V+Vlrx`|e@?2HT&KsmLEaavjhS|C*r1((P%Vvr*o}BC;k+^xMgbF7!Bj4)H4-}WNF@;~)+@Vp&$i!?r znM13TnIY6}a)Z`BCZSiG7c$q1Y~H}UnqzZ-$76LlL!ecLOq)fvx9N7zV2D;T@X%qC z4ZgEsvQ3XsFXQCIG=oW{PHKj_S&3zdDf!8IS&2mqS8U#;=SeJRvA!Sn?cae@&NJqw z1;1`jnA-K!7`N-GF&TI>O<~^NS - + diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..94a25f7f --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/downloadutil/src/main/java/com/arialyy/downloadutil/util/DownLoadUtil.java b/downloadutil/src/main/java/com/arialyy/downloadutil/util/DownLoadUtil.java index a7b54427..d0b004eb 100644 --- a/downloadutil/src/main/java/com/arialyy/downloadutil/util/DownLoadUtil.java +++ b/downloadutil/src/main/java/com/arialyy/downloadutil/util/DownLoadUtil.java @@ -142,11 +142,11 @@ final class DownLoadUtil { HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod("GET"); conn.setRequestProperty("Charset", "UTF-8"); - conn.setConnectTimeout(TIME_OUT * 4); conn.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"); conn.setRequestProperty("Accept", "image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*"); + conn.setConnectTimeout(TIME_OUT * 4); conn.connect(); int len = conn.getContentLength(); if (len < 0) { //网络被劫持时会出现这个问题 @@ -290,11 +290,11 @@ final class DownLoadUtil { "bytes=" + dEntity.startLocation + "-" + dEntity.endLocation); conn.setRequestMethod("GET"); conn.setRequestProperty("Charset", "UTF-8"); - conn.setConnectTimeout(TIME_OUT * 4); conn.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"); conn.setRequestProperty("Accept", "image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*"); + conn.setConnectTimeout(TIME_OUT * 4); conn.setReadTimeout(TIME_OUT * 24); //设置读取流的等待时间,必须设置该参数 InputStream is = conn.getInputStream(); //创建可设置位置的文件 @@ -323,6 +323,7 @@ final class DownLoadUtil { } file.close(); is.close(); + if (isCancel) { synchronized (DownLoadUtil.this) { mCancelNum++;