EntityResolver2
interface in package org.xml.sax.ext

    public interface EntityResolver2 extends EntityResolver:

EntityResolver
└ EntityResolver2

SAX2 extension for resolving external entities and external subsets.

When an `XMLReader` is configured to use this interface, its four-argument `resolveEntity` method replaces the SAX1 resolver callback.

Example

    import org.xml.sax.ext

    resolver as EntityResolver2 = null
    if resolver is not null:
    subset = resolver.getExternalSubset("book", "file:/tmp/book.xml")

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | getExternalSubset `getExternalSubset(name as String, baseURI as String) as InputSource throws SAXException, IOException` | Provides an external subset when the document omits one.
public | resolveEntity `resolveEntity(name as String, publicId as String, baseURI as String, systemId as String) as InputSource throws SAXException, IOException` | Resolves an external entity using SAX2 entity metadata.

Inherited Methods
method Inherited Methods from EntityResolver: resolveEntity