01: package com.rimfaxe.xml.xmlreader;
02:
03: /** This class provides a default ParseHandler that does nothing.
04: Users should subclass it and overload the necessary methods.
05:
06: <blockquote><small> Copyright (C) 2002 Hewlett-Packard Company.
07: This file is part of Sparta, an XML Parser, DOM, and XPath library.
08: This library is free software; you can redistribute it and/or
09: modify it under the terms of the GNU Lesser General Public License
10: as published by the Free Software Foundation; either version 2.1 of
11: the License, or (at your option) any later version. This library
12: is distributed in the hope that it will be useful, but WITHOUT ANY
13: WARRANTY; without even the implied warranty of MERCHANTABILITY or
14: FITNESS FOR A PARTICULAR PURPOSE.</small></blockquote>
15: @see <a "href="doc-files/LGPL.txt">GNU Lesser General Public License</a>
16: @version $Date: 2002/08/19 05:04:01 $ $Revision: 1.1.1.1 $
17: @author Sergio Marti
18:
19: */
20: public class DefaultParseHandler implements ParseHandler {
21:
22: private ParseSource parseSource_ = null;
23:
24: public void setParseSource(ParseSource ps) {
25: parseSource_ = ps;
26: }
27:
28: public ParseSource getParseSource() {
29: return parseSource_;
30: }
31:
32: public void startDocument() throws ParseException {
33: }
34:
35: public void endDocument() throws ParseException {
36: }
37:
38: public void startElement(Element element) throws ParseException {
39: }
40:
41: public void endElement(Element element) throws ParseException {
42: }
43:
44: public void characters(char[] buf, int off, int len)
45: throws ParseException {
46: }
47:
48: }
49:
50: // $Log: DefaultParseHandler.java,v $
51: // Revision 1.1.1.1 2002/08/19 05:04:01 eobrain
52: // import from HP Labs internal CVS
53: //
54: // Revision 1.3 2002/08/18 04:32:40 eob
55: // Add copyright and other formatting and commenting in preparation for
56: // release to SourceForge.
57: //
58: // Revision 1.2 2002/08/17 00:54:14 sermarti
59: //
60: // Revision 1.1 2002/08/01 23:29:17 sermarti
61: // Much faster Sparta parsing.
62: // Has debug features enabled by default. Currently toggled
63: // in ParseCharStream.java and recompiled.
|