Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java SE 综合讨论区  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re::(求救:自己做的一个HTTP文件下载工具。有问题请教高手…… [Re:Wendy0007]
Wendy0007





发贴: 120
积分: 0
于 2004-04-02 20:18 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
这是能正常下载的一个,下载完毕后最后一段线程的StartPos和EndPos是一致的(红色文本)。

URL=http://ljj.lamost.org/video/6.1.zip
.
.
.
Thread 1 retry(39)... RANGE : bytes=3807935-7034966
java.net.UnknownHostException: ljj.lamost.org
  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
  at java.net.Socket.connect(Socket.java:452)
  at java.net.Socket.connect(Socket.java:402)
  at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
  at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
  at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
  at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
  at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
  at sun.net.www.http.HttpClient.New(HttpClient.java:339)
  at sun.net.www.http.HttpClient.New(HttpClient.java:320)
  at sun.net.www.http.HttpClient.New(HttpClient.java:315)
  at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:512)
  at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:489)
  at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:617)
  at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272)
  at cn.com.wendy.util.net.FileSplitterFetch.run(FileSplitterFetch.java:64)
Thread 4 retry(40)... RANGE : bytes=14303100-17587419
java.net.UnknownHostException: ljj.lamost.org
  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
  at java.net.Socket.connect(Socket.java:452)
  at java.net.Socket.connect(Socket.java:402)
  at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
  at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
  at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
  at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
  at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
  at sun.net.www.http.HttpClient.New(HttpClient.java:339)
  at sun.net.www.http.HttpClient.New(HttpClient.java:320)
  at sun.net.www.http.HttpClient.New(HttpClient.java:315)
  at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:512)
  at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:489)
  at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:617)
  at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272)
  at cn.com.wendy.util.net.FileSplitterFetch.run(FileSplitterFetch.java:64)
Thread 2 retry(39)... RANGE : bytes=7173746-10552449
java.net.UnknownHostException: ljj.lamost.org
  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
  at java.net.Socket.connect(Socket.java:452)
  at java.net.Socket.connect(Socket.java:402)
  at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
  at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
  at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
  at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
  at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
  at sun.net.www.http.HttpClient.New(HttpClient.java:339)
  at sun.net.www.http.HttpClient.New(HttpClient.java:320)
  at sun.net.www.http.HttpClient.New(HttpClient.java:315)
  at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:512)
  at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:489)
  at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:617)
  at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272)
  at cn.com.wendy.util.net.FileSplitterFetch.run(FileSplitterFetch.java:64)
Thread 3 retry(38)... RANGE : bytes=10825037-14069932
Thread 0 is over!
Thread 2 is over!
Thread 4 is over!
Thread 3 is over!
Thread 1 is over!
文件下载结束!
Thread 0: StartPos:3518142 EndPos:3517483 true
Thread 1: StartPos:7035179 EndPos:7034966 true
Thread 2: StartPos:10553366 EndPos:10552449 true
Thread 3: StartPos:14070553 EndPos:14069932 true
Thread 4: StartPos:17587419 EndPos:17587419 true
Begin at : Fri Apr 02 19:50:04 CST 2004
End at : Fri Apr 02 20:08:39 CST 2004
文件大小:17175(K)
下载用时:1115秒
下载速度:14(K/S)


Wendy0007 edited on 2004-04-02 20:25


CJSDNer6月14日北京聚会花絮

话题树型展开
人气 标题 作者 字数 发贴时间
8204 :(求救:自己做的一个HTTP文件下载工具。有问题请教高手…… Wendy0007 1199 2004-04-02 20:07
9272 Re::(求救:自己做的一个HTTP文件下载工具。有问题请教高手…… Wendy0007 4673 2004-04-02 20:18
7361 Re::(求救:自己做的一个HTTP文件下载工具。有问题请教高手…… Wendy0007 121 2004-04-02 20:45
6754 Re::(求救:自己做的一个HTTP文件下载工具。有问题请教高手…… Wendy0007 21 2004-04-03 23:13
6671 Re::(求救:自己做的一个HTTP文件下载工具。有问题请教高手…… rainman 12 2004-04-04 01:43
6479 Re::(求救:自己做的一个HTTP文件下载工具。有问题请教高手…… floater 64 2004-04-04 01:49
6539 Re::(求救:自己做的一个HTTP文件下载工具。有问题请教高手…… pengtaoli 35 2004-04-22 10:18

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923