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