KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > services > htmlparser > HtmlParser


1 package org.jahia.services.htmlparser;
2
3 import java.util.Vector JavaDoc;
4
5 /**
6  *
7  * <p>Title: Html Parser interface</p>
8  * <p>Description: </p>
9  * <p>Copyright: Copyright (c) 2002</p>
10  * <p>Company: </p>
11  * @author Khue Nguyen
12  * @version 1.0
13  */

14 public interface HtmlParser {
15
16     /**
17      *
18      * @param htmlParserService HtmlParserService
19      */

20     public abstract void init(HtmlParserService htmlParserService);
21
22     /**
23      * Parses and generates a clean html document, remove unwanted markups,..
24      * Using default settings
25      *
26      * @param inputString
27      * @param DOMVisitors
28      * @return
29      */

30     public abstract String JavaDoc parse(String JavaDoc inputString, Vector JavaDoc DOMVisitors );
31
32     /**
33      * Parses and generates a clean html document, remove unwanted markups,..
34      * Using settings as defined for a given site
35      *
36      * @param inputString
37      * @param DOMVisitors
38      * @param siteId
39      * @return
40      */

41     public abstract String JavaDoc parse(String JavaDoc inputString, Vector JavaDoc DOMVisitors,
42                                  int siteId );
43
44 }
45
Popular Tags