htmlparser.java
来自「firefox的html解析器 本程序实现了想数据库中添加多媒体文件和文件说明」· Java 代码 · 共 30 行
JAVA
30 行
package com.dappit.Dapper.parser;import javax.xml.parsers.ParserConfigurationException;import org.dom4j.DocumentException;import org.w3c.dom.Document;/** * An HTML parser that can take a stream of bytes and return a DOM Document * object. * * @author Tony Novak */public interface HTMLParser{ /** * Parse an html document, returning a DOM document. * * @param htmlBytes Raw bytes to parse * @param htmlEncoding The character set (e.g. <tt>UTF-8</tt>) for * decoding <i>htmlBytes</i>. If <tt>null</tt> * is passed, the default HTTP encoding * (<tt>ISO-8559-1</tt>) is used, unless the * character set is overridden by a * <tt><META></tt> tag in the HTML body. * If a non-null value is passed, any such * <tt><META></tt> tag is ignored. */ public Document parse( byte[] htmlBytes, String htmlEncoding ) throws DocumentException, ParserException, ParserConfigurationException;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?