public class DefaultEntityResolver extends Object implements EntityResolver
EntityResolver using
SimpleLSResourceResolver with a base URL.| Constructor and Description |
|---|
DefaultEntityResolver(String sBaseURI)
Constructor with a base URI.
|
DefaultEntityResolver(URL aBaseURL)
Constructor with a URL.
|
| Modifier and Type | Method and Description |
|---|---|
static DefaultEntityResolver |
createOnDemand(com.helger.commons.io.resource.IReadableResource aBaseResource)
Factory method with a resource.
|
InputSource |
resolveEntity(String sPublicID,
String sSystemID) |
public DefaultEntityResolver(@Nonnull URL aBaseURL)
aBaseURL - The base URL. May not be null.@Nullable public InputSource resolveEntity(@Nullable String sPublicID, @Nullable String sSystemID) throws SAXException, IOException
resolveEntity in interface EntityResolverSAXExceptionIOException@Nullable public static DefaultEntityResolver createOnDemand(@Nonnull com.helger.commons.io.resource.IReadableResource aBaseResource)
aBaseResource - The base resource. May not be null.null if the resource does not existCopyright © 2014–2018 Philip Helger. All rights reserved.