|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.torque.engine.database.transform.DTDResolver
public class DTDResolver
A resolver to get the database.dtd file for the XML parser from the jar.
Field Summary | |
---|---|
static String |
WEB_SITE_DTD
Where the DTD is located on the web. |
static String |
WEB_SITE_DTD_3_2
Where the 3.2 DTD is located on the web. |
Constructor Summary | |
---|---|
DTDResolver()
constructor |
Method Summary | |
---|---|
InputSource |
resolveEntity(String publicId,
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 |
---|
public static final String WEB_SITE_DTD
public static final String WEB_SITE_DTD_3_2
Constructor Detail |
---|
public DTDResolver() throws SAXException
SAXException
Method Detail |
---|
public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException
EntityResolver
interface to be called by the XML parser. If the dtd is the
current Torque DTD, the DTD is read from the generator jar.
In all other cases, null is returned to indicate that the parser
should open a regular connection to the systemId URI.
resolveEntity
in interface EntityResolver
publicId
- The public identifier of the external entitysystemId
- The system identifier of the external entity
InputSource
for the
database.dtd
file in the generator jar, or null.
IOException
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |