org.apache.torque.engine.database.transform
Class DTDResolver

java.lang.Object
  extended byorg.apache.torque.engine.database.transform.DTDResolver
All Implemented Interfaces:
org.xml.sax.EntityResolver

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

A resolver to get the database.dtd file for the XML parser from the jar.

Version:
$Id: DTDResolver.java,v 1.9.2.3 2004/10/16 11:52:05 henning Exp $
Author:
Martin Poeschl, Kurt Schrader, Quinton McCombs

Field Summary
static java.lang.String WEB_SITE_DTD
          Where the DTD is located on the web.
 
Constructor Summary
DTDResolver()
          constructor
 
Method Summary
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
          An implementation of the SAX EntityResolver interface to be called by the XML parser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEB_SITE_DTD

public static final java.lang.String WEB_SITE_DTD
Where the DTD is located on the web.

See Also:
Constant Field Values
Constructor Detail

DTDResolver

public DTDResolver()
            throws org.xml.sax.SAXException
constructor

Method Detail

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
                                      throws java.io.IOException
An implementation of the SAX EntityResolver interface to be called by the XML parser.

Specified by:
resolveEntity in interface org.xml.sax.EntityResolver
Parameters:
publicId - The public identifier of the external entity
systemId - The system identifier of the external entity
Returns:
An InputSource for the database.dtd file.
Throws:
java.io.IOException


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.