Class X4OEntityResolver
java.lang.Object
org.x4o.xml.io.X4OEntityResolver
- All Implemented Interfaces:
EntityResolver
X4OEntityResolver resolves internel entities and proxy to external defined ones.
Resolve order;
1) validation base path dir
2) external resolver
3) lookup for language in classpath.
4) throw exception
- Version:
- 1.0 Aug 22, 2012
- Author:
- Willem Cazander
-
Constructor Summary
ConstructorsConstructorDescriptionX4OEntityResolver
(X4OLanguageSession elementContext, SAX3PropertyConfig propertyConfig) Creates an X4OEntityResolver for a language. -
Method Summary
Modifier and TypeMethodDescriptionresolveEntity
(String publicId, String systemId) Try to resolve xml entities by systemId.
-
Constructor Details
-
X4OEntityResolver
Creates an X4OEntityResolver for a language.- Parameters:
elementContext
- The x4o language to resolve entities for.
-
-
Method Details
-
resolveEntity
Try to resolve xml entities by systemId.- Specified by:
resolveEntity
in interfaceEntityResolver
- Parameters:
publicId
- The public id to search for.systemId
- The system id to search for.- Returns:
- Returns null or the InputSource of the requested ids.
- Throws:
IOException
- When resource could not be read.SAXException
- When exception is thrown.
-