net.sourceforge.sqlunit
Class SQLUnitEntityResolver

java.lang.Object
  extended by net.sourceforge.sqlunit.SQLUnitEntityResolver
All Implemented Interfaces:
org.xml.sax.EntityResolver

public class SQLUnitEntityResolver
extends java.lang.Object
implements org.xml.sax.EntityResolver

The SQLUnit Entity Resolver sets the DTD for the SQLUnit test file from within the SQLUnit JAR file.

Version:
$Revision: 1.1 $
Author:
Sujit Pal (spal@users.sourceforge.net)

Constructor Summary
SQLUnitEntityResolver()
           
 
Method Summary
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
          Resolves the system id for an SQLUnit XML file to the sqlunit.dtd available inside the SQLUnit JAR.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLUnitEntityResolver

public SQLUnitEntityResolver()
Method Detail

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
                                      throws org.xml.sax.SAXException,
                                             java.io.IOException
Resolves the system id for an SQLUnit XML file to the sqlunit.dtd available inside the SQLUnit JAR.

Specified by:
resolveEntity in interface org.xml.sax.EntityResolver
Parameters:
publicId - the public id in the DocType declaration.
systemId - the system id in the DocType declaration.
Throws:
org.xml.sax.SAXException
java.io.IOException