htmlparser.java

来自「本系统实现了从五个网站上搜索的图书进行整合后」· Java 代码 · 共 44 行

JAVA
44
字号
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 + =
减小字号Ctrl + -
显示快捷键?