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