public class UpgradeProcessor extends AbstractRequester
| 限定符和类型 | 方法和说明 |
|---|---|
void |
autoUpgrade(int seconds) |
static boolean |
copy(String fromUrl,
String toUrl)
拷贝文件
|
static String |
downloadZip(String fromUrl,
String fromFileName,
String toUrl)
下载zip文件
|
String |
getCourseRootPath() |
void |
getUpgrade()
检查当天是否有更新
|
static void |
getUpgrade0()
已过时。
|
static UpgradeProcessor |
instance() |
static List<String> |
readZipFileName(String file)
不解压,直接读取压缩包内的文件列表
|
void |
register()
每天检查更新情况
|
void |
setCourseRootPath(String courseRootPath) |
doGet, doPost, doPostpublic static UpgradeProcessor instance()
public String getCourseRootPath()
public void setCourseRootPath(String courseRootPath)
public static boolean copy(String fromUrl, String toUrl) throws FileNotFoundException
fromUrl - toUrl - FileNotFoundExceptionpublic static String downloadZip(String fromUrl, String fromFileName, String toUrl)
fromUrl - toUrl - public void getUpgrade()
@Deprecated public static void getUpgrade0()
public static List<String> readZipFileName(String file) throws Exception
file - Exceptionpublic void register()
public void autoUpgrade(int seconds)
Copyright © 2022. All rights reserved.