Package cn.net.pap.common.spider.jsoup
Class ZlibraryUtil
java.lang.Object
cn.net.pap.common.spider.jsoup.ZlibraryUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddownloadImg(String urlString, String baseSaveDir, String filename) static voiddownloadNet(String urlToDownload, String saveFilePath, String fileName, String cookie) static voidgetBookInfo(String url, String cookie, String baseSaveDir, String baseDomain)
-
Constructor Details
-
ZlibraryUtil
public ZlibraryUtil()
-
-
Method Details
-
readFile
-
getBookInfo
public static void getBookInfo(String url, String cookie, String baseSaveDir, String baseDomain) throws Exception - Parameters:
url- 下载的urlcookie- 登录后的cookiebaseSaveDir- 存储到本地的路径baseDomain- 下载资源增加的前缀- Throws:
Exception
-
downloadImg
public static void downloadImg(String urlString, String baseSaveDir, String filename) throws Exception - Throws:
Exception
-
downloadNet
public static void downloadNet(String urlToDownload, String saveFilePath, String fileName, String cookie) throws MalformedURLException - Throws:
MalformedURLException
-