⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 htmlparser.java

📁 本系统实现了从五个网站上搜索的图书进行整合后
💻 JAVA
字号:
package com.booksearch.service.htmlparser;

import java.io.IOException;
import java.util.ArrayList;

import org.w3c.dom.Document;
import org.xml.sax.SAXException;

import com.booksearch.orm.Book;
import com.booksearch.orm.Price;

public interface HtmlParser<T> {

	public  Document nekohtmlParser(String url)throws Exception;
	
	public  ArrayList<Book> mainService(Document doc,boolean flag);
	
	public Price getDetailInfo(Document doc);
	
	public  String getNextPageUrl(Document doc);
	
	public long getRecordNum(Document doc);
	
	public  String  getBookImage(T bookElement);
	
	public  String getBookName(T bookElement);
	
	public  String getBookAuthor(T bookElement);
	
	public  String getBookPublisher(T bookElement);
	
	public  String getBookPublishTime(T bookElement);
	
	public  String getBookPrice(T bookElement);
	
	public  String getBookISBN(T bookElement);
	
	public  String getBookFixPrice(T bookElement);
	
	public  String getBookDiscount(T bookElement);
	
	public  String getBookUrl(T bookElement);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -