public class SchemaResolver extends Object implements EntityResolver
| Modifier and Type | Field and Description |
|---|---|
static String |
XSD_PATH
Directory where embedded schemas are copied.
|
| Constructor and Description |
|---|
SchemaResolver() |
| Modifier and Type | Method and Description |
|---|---|
InputSource |
resolveEntity(String publicId,
String systemId)
Resolves systemIds to use embedded schemas.
|
public static final String XSD_PATH
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
XSD_PATH directory with the current classloader.resolveEntity in interface EntityResolverpublicId - the publicIdsystemId - the systemId (Schema URL)null if the schema
cannot be loaded (not embedded)SAXException - cannot happenIOException - when the embedded resource cannot be read correctlyEntityResolver.resolveEntity(java.lang.String, java.lang.String)Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.