public class DBEntityResolver
extends java.lang.Object
implements org.xml.sax.EntityResolver
Constructor and Description |
---|
DBEntityResolver(DBConnection conn)
Construct an instance of the DBEntityResolver class
|
DBEntityResolver(DBConnection conn,
org.xml.sax.helpers.DefaultHandler handler,
java.io.Reader dtd)
Construct an instance of the DBEntityResolver class
|
Modifier and Type | Method and Description |
---|---|
static java.io.InputStream |
checkURLConnection(java.lang.String systemId)
Check URL Connection for @systemId, and return an InputStream
that can be used to read from the systemId URL.
|
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)
|
public DBEntityResolver(DBConnection conn)
conn
- the JDBC connection to which information is writtenpublic DBEntityResolver(DBConnection conn, org.xml.sax.helpers.DefaultHandler handler, java.io.Reader dtd)
conn
- the JDBC connection to which information is writtenhandler
- the SAX handler to determine parsing contextdtd
- Reader of new dtd to be uploaded on server's file systempublic org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException
resolveEntity
in interface org.xml.sax.EntityResolver
org.xml.sax.SAXException
public static java.io.InputStream checkURLConnection(java.lang.String systemId) throws org.xml.sax.SAXException
systemId
- a URI (in practice URL) to be checked and openedorg.xml.sax.SAXException
Copyright © 2020 Regents of the University of California. All Rights Reserved.