http.setRequestProperty("Range",sProperty)什么意思??
HttpURLConnection http;try {
//构造下载的URL对象
downURL= new URL(downInfo.getDownURL());
//建立下载的URL连接
http=(HttpURLConnection)downURL.openConnection();
//设置本次下载的起始位置
String sProperty ="bytes="+ startP + "-";
http.setRequestProperty("Range",sProperty);//设置了什么属性。有什么用??
//获取网络的输入流
in=http.getInputStream();
//构造写入文件的输出流
out=new RandomAccessFile(downInfo.getSaveFileName(),"rw");
}
还有getRequestProperty()返回什么样的属性,有什么用??
谢谢了