MCPcopy Create free account
hub / github.com/HelloBush/Java_MHXYdemo / DownloadFile

Method DownloadFile

src/pkgDm/Dm2Java.java:1836–1838  ·  view source on GitHub ↗

从internet上下载一个文件. @param url 下载的url地址. @param save_file 要保存的文件名. @param timeout 连接超时时间,单位是毫秒. @return 1 : 成功 -1 : 网络连接失败 -2 : 写入文件失败

(String url,String save_file,int timeout)

Source from the content-addressed store, hash-verified

1834 * -2 : 写入文件失败<br/>
1835 */
1836 public int DownloadFile(String url,String save_file,int timeout){
1837 return Dispatch.call(dm,"DownloadFile",url,save_file,timeout).getInt();
1838 }
1839
1840 /**
1841 * 获取指定的文件长度.

Callers

nothing calls this directly

Calls 2

callMethod · 0.95
getIntMethod · 0.45

Tested by

no test coverage detected