KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sample > HTMLSAXParser


1 /*
2  * (C) Copyright 2002-2004, Andy Clark. All rights reserved.
3  *
4  * This file is distributed under an Apache style license. Please
5  * refer to the LICENSE file for specific details.
6  */

7
8 package sample;
9
10 import org.apache.xerces.parsers.AbstractSAXParser;
11 import org.cyberneko.html.HTMLConfiguration;
12
13 /**
14  * This sample shows how to extend a Xerces2 parser class, replacing
15  * the default parser configuration with the NekoHTML configuration.
16  *
17  * @author Andy Clark
18  *
19  * @version $Id: HTMLSAXParser.java,v 1.3 2004/02/19 20:00:17 andyc Exp $
20  */

21 public class HTMLSAXParser
22     extends AbstractSAXParser {
23
24     //
25
// Constructors
26
//
27

28     /** Default constructor. */
29     public HTMLSAXParser() {
30         super(new HTMLConfiguration());
31     } // <init>()
32

33 } // class HTMLSAXParser
34
Popular Tags