Package cn.net.pap.common.spider.jsoup
Class ZlibraryUtil
java.lang.Object
cn.net.pap.common.spider.jsoup.ZlibraryUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
downloadImg
(String urlString, String baseSaveDir, String filename) static void
downloadNet
(String urlToDownload, String saveFilePath, String fileName, String cookie) static void
getBookInfo
(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
-