erland.util
Class SAXXMLParser

java.lang.Object
  extended by 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

Constructor Summary
SAXXMLParser()
           
 
Method Summary
 boolean parse(InputStream in, XMLParserHandlerInterface parser)
          Parse an XML document in an InputStream using the specified XML parser handler implementation
 boolean parse(String str, XMLParserHandlerInterface parser)
          Parse an XML document in String using the specified XML parser handler implementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXXMLParser

public SAXXMLParser()
Method Detail

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 document
parser - 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 document
parser - The XML parser handler implementation to use when parsing
Returns:
true/false (success/failure)


Copyright © 2003-2005 Erland Isaksson. All Rights Reserved.