Package org.mycore.common.xml
Class MCREntityResolver
java.lang.Object
org.mycore.common.xml.MCREntityResolver
- All Implemented Interfaces:
LSResourceResolver
,EntityResolver
,EntityResolver2
MCREntityResolver uses
CatalogResolver
for resolving entities or - for compatibility reasons - looks in
classpath to resolve XSD and DTD files.- Since:
- 2013.10
- Author:
- Thomas Scheffler (yagee)
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetExternalSubset
(String name, String baseURI) static MCREntityResolver
instance()
resolveEntity
(String publicId, String systemId) resolveEntity
(String name, String publicId, String baseURI, String systemId)
-
Field Details
-
LOGGER
-
-
Method Details
-
instance
-
resolveEntity
- Specified by:
resolveEntity
in interfaceEntityResolver
- Throws:
IOException
-
getExternalSubset
- Specified by:
getExternalSubset
in interfaceEntityResolver2
-
resolveEntity
public InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) throws IOException - Specified by:
resolveEntity
in interfaceEntityResolver2
- Throws:
IOException
-
resolveResource
public LSInput resolveResource(String type, String namespaceURI, String publicId, String systemId, String baseURI) - Specified by:
resolveResource
in interfaceLSResourceResolver
-