erland.util
Class SAXXMLParser
java.lang.Object
erland.util.SAXXMLParser
- All Implemented Interfaces:
- XMLParserInterface
public class SAXXMLParser
- extends Object
- implements XMLParserInterface
A wrapper for the SAXParser
XML parser to make
it possible to use it with the XMLParserInterface
- Author:
- Erland Isaksson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SAXXMLParser
public SAXXMLParser()
parse
public boolean parse(InputStream in,
XMLParserHandlerInterface parser)
- Description copied from interface:
XMLParserInterface
- Parse an XML document in an InputStream using the specified
XML parser handler implementation
- Specified by:
parse
in interface XMLParserInterface
- Parameters:
in
- The InputStream with the XML documentparser
- The XML parser handler implementation to use when parsing
- Returns:
- true/false (success/failure)
parse
public boolean parse(String str,
XMLParserHandlerInterface parser)
- Description copied from interface:
XMLParserInterface
- Parse an XML document in String using the specified
XML parser handler implementation
- Specified by:
parse
in interface XMLParserInterface
- Parameters:
str
- The String object with the XML documentparser
- The XML parser handler implementation to use when parsing
- Returns:
- true/false (success/failure)
Copyright © 2003-2005 Erland Isaksson. All Rights Reserved.