|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.util.xml.SchemaEntityResolver
public class SchemaEntityResolver
Entity resolver allowing to find schema within the classloader.
| Constructor Summary | |
|---|---|
SchemaEntityResolver(String[] schemas)
Constructor. |
|
SchemaEntityResolver(String[] schemas,
String[] dtdPublicIds,
String[] dtdsFileNames)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addDtds(String[] dtdPublicIds,
String[] dtdsFileNames)
Add the mapping between a public Id and the local path of the DTD. |
protected URL |
getURL(String resourceName)
Gets an URL for a given resource. |
InputSource |
resolveEntity(String publicId,
String systemId)
The Parser will call this method before opening any external entity except the top-level document entity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SchemaEntityResolver(String[] schemas)
schemas - the name of the schemas to resolve.
public SchemaEntityResolver(String[] schemas,
String[] dtdPublicIds,
String[] dtdsFileNames)
schemas - the name of the schemas to resolve.dtdPublicIds - the PublicIddtdsFileNames - the name of the DTDs| Method Detail |
|---|
protected void addDtds(String[] dtdPublicIds,
String[] dtdsFileNames)
dtdPublicIds - the PublicIddtdsFileNames - the name of the DTDsprotected URL getURL(String resourceName)
resourceName - the name of the resource
public InputSource resolveEntity(String publicId,
String systemId)
throws IOException,
SAXException
resolveEntity in interface EntityResolverpublicId - The public identifier of the external entity being
referenced, or null if none was supplied.systemId - The system identifier of the external entity being
referenced.
SAXException - Any SAX exception, possibly wrapping another
exception.
IOException - A Java-specific IO exception, possibly the result of
creating a new InputStream or Reader for the InputSource.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||