com.hp.hpl.sparta
Class DefaultParseHandler
java.lang.Object
|
+--com.hp.hpl.sparta.DefaultParseHandler
- All Implemented Interfaces:
- ParseHandler
- public class DefaultParseHandler
- extends java.lang.Object
- implements ParseHandler
This class provides a default ParseHandler that does nothing.
Users should subclass it and overload the necessary methods.
Copyright (C) 2002 Hewlett-Packard Company.
This file is part of Sparta, an XML Parser, DOM, and XPath library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License
as published by the Free Software Foundation; either version 2.1 of
the License, or (at your option) any later version. This library
is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.
- Version:
- $Date: 2002/08/19 05:04:01 $ $Revision: 1.1.1.1 $
- Author:
- Sergio Marti
- See Also:
- GNU Lesser General Public License
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultParseHandler
public DefaultParseHandler()
setParseSource
public void setParseSource(ParseSource ps)
- Specified by:
setParseSource
in interface ParseHandler
getParseSource
public ParseSource getParseSource()
- Specified by:
getParseSource
in interface ParseHandler
startDocument
public void startDocument()
throws ParseException
- Specified by:
startDocument
in interface ParseHandler
endDocument
public void endDocument()
throws ParseException
- Specified by:
endDocument
in interface ParseHandler
startElement
public void startElement(Element element)
throws ParseException
- Specified by:
startElement
in interface ParseHandler
endElement
public void endElement(Element element)
throws ParseException
- Specified by:
endElement
in interface ParseHandler
characters
public void characters(char[] buf,
int off,
int len)
throws ParseException
- Specified by:
characters
in interface ParseHandler