edu.ucsb.nceas.metacat
Class DBEntityResolver
java.lang.Object
|
+--edu.ucsb.nceas.metacat.DBEntityResolver
- public class DBEntityResolver
- extends java.lang.Object
- implements org.xml.sax.EntityResolver
A database aware Class implementing EntityResolver interface for the SAX
parser to call when processing the XML stream and intercepting any
external entities (including the external DTD subset and external
parameter entities, if any) before including them.
Method Summary |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
The Parser call this method before opening any external entity
except the top-level document entity (including the external DTD subset,
external entities referenced within the DTD, and external entities
referenced within the document element) |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DBEntityResolver
public DBEntityResolver(java.sql.Connection conn,
DBSAXHandler handler)
- Construct an instance of the DBEntityResolver clas
- Parameters:
conn
- the JDBC connection to which information is written
resolveEntity
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
throws java.net.MalformedURLException,
java.io.IOException
- The Parser call this method before opening any external entity
except the top-level document entity (including the external DTD subset,
external entities referenced within the DTD, and external entities
referenced within the document element)
- Specified by:
- resolveEntity in interface org.xml.sax.EntityResolver
Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.