|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.xml.parser.SchemaResolver
public class SchemaResolver
Entity Resolver loading embedded XML Schemas. This resolver avoid using a network connection to get schemas as they are loaded from the manipulator jar file.
Field Summary | |
---|---|
static java.lang.String |
XSD_PATH
Directory where embedded schemas are copied. |
Constructor Summary | |
---|---|
SchemaResolver()
|
Method Summary | |
---|---|
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Resolves systemIds to use embedded schemas. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String XSD_PATH
Constructor Detail |
---|
public SchemaResolver()
Method Detail |
---|
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 happen
java.io.IOException
- when the embedded resource cannot be read correctlyEntityResolver.resolveEntity(java.lang.String, java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |