com.acsinet_solutions.util.xml
Class SimpleSAXParser

java.lang.Object
  extended by com.acsinet_solutions.util.xml.SimpleSAXParser

public final class SimpleSAXParser
extends java.lang.Object

Implementation that defines a simple way to define a SAX parser that feeds a ContentHandler instance

Author:
Santiago Arriaga - santiago.arriaga@acsinet-solutions.com

Constructor Summary
SimpleSAXParser(org.xml.sax.ContentHandler handler, org.xml.sax.ErrorHandler errorHandler)
          Public constructor.
 
Method Summary
 void parse(org.xml.sax.InputSource source)
          Do the parsing.
 void parse(java.io.Reader reader)
          Do the parsing.
 void parse(java.lang.String file)
          Do the parsing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSAXParser

public SimpleSAXParser(org.xml.sax.ContentHandler handler,
                       org.xml.sax.ErrorHandler errorHandler)
Public constructor.

Parameters:
handler - The content handler to be fed by this parser
errorHandler - The not null error handler
Method Detail

parse

public final void parse(org.xml.sax.InputSource source)
                 throws java.io.IOException,
                        org.xml.sax.SAXException
Do the parsing. This method calls the internal SAX parser

Parameters:
source - The input source to the parser
Throws:
java.io.IOException
org.xml.sax.SAXException

parse

public final void parse(java.io.Reader reader)
                 throws java.io.IOException,
                        org.xml.sax.SAXException
Do the parsing. This method calls the internal SAX parser

Parameters:
reader - The input source to the parser
Throws:
java.io.IOException
org.xml.sax.SAXException

parse

public final void parse(java.lang.String file)
                 throws java.io.IOException,
                        org.xml.sax.SAXException
Do the parsing. This method calls the internal SAX parser

Parameters:
file - The input source to the parser
Throws:
java.io.IOException
org.xml.sax.SAXException