01: /*
02: * Copyright 2002-2008 Andy Clark
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package sample;
18:
19: import org.apache.xerces.parsers.AbstractSAXParser;
20: import org.cyberneko.html.HTMLConfiguration;
21:
22: /**
23: * This sample shows how to extend a Xerces2 parser class, replacing
24: * the default parser configuration with the NekoHTML configuration.
25: *
26: * @author Andy Clark
27: *
28: * @version $Id: HTMLSAXParser.java,v 1.3 2004/02/19 20:00:17 andyc Exp $
29: */
30: public class HTMLSAXParser extends AbstractSAXParser {
31:
32: //
33: // Constructors
34: //
35:
36: /** Default constructor. */
37: public HTMLSAXParser() {
38: super (new HTMLConfiguration());
39: } // <init>()
40:
41: } // class HTMLSAXParser
|