public class CapturingXMLEntityResolver
extends java.lang.Object
implements org.apache.xerces.xni.parser.XMLEntityResolver
XMLEntityResolver
s that defers resolution to the
wrapped object and saves the byte stream of each resolved entity in a map.
The purpose of this object is to provide a mechanism for capturing the
"whole" of a schema document (including imports and other dependencies).Constructor and Description |
---|
CapturingXMLEntityResolver(java.util.Map<java.net.URI,byte[]> capture,
org.apache.xerces.xni.parser.XMLEntityResolver resolver) |
Modifier and Type | Method and Description |
---|---|
org.apache.xerces.xni.parser.XMLInputSource |
resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier resourceIdentifier) |
public CapturingXMLEntityResolver(java.util.Map<java.net.URI,byte[]> capture, org.apache.xerces.xni.parser.XMLEntityResolver resolver)
public org.apache.xerces.xni.parser.XMLInputSource resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier resourceIdentifier) throws org.apache.xerces.xni.XNIException, java.io.IOException
resolveEntity
in interface org.apache.xerces.xni.parser.XMLEntityResolver
org.apache.xerces.xni.XNIException
java.io.IOException