public class ExternalReferenceResolverImpl extends java.lang.Object implements ExternalReferenceResolverInterface
ExternalReferenceResolverInterface, which is shipped with IXSIL.| Modifier and Type | Field and Description |
|---|---|
protected URI |
base_
The base URI for absolutizing relative URIs.
|
| Constructor and Description |
|---|
ExternalReferenceResolverImpl(URI base)
Creates a new resolver which uses the specified URI as basis for absolutizing relative URIs.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
resolve(URI uri)
Currently only the case of a specified location (URL) is covered by this method: It relies on method
URL.openStream(). |
void |
setBaseURI(URI baseURI)
Sets the base URI used for absolutizing relative URIs.
|
protected URI base_
public ExternalReferenceResolverImpl(URI base)
base - The base URI for absolutizing relative URIs.public java.io.InputStream resolve(URI uri) throws ExternalReferenceResolverException
URL.openStream(). The case of a specified name (URN) is not covered and leads to an
exception. This implementation does not evaluate the eventually existing reference part of the
specified URI!resolve in interface ExternalReferenceResolverInterfaceuri - The specified URI to be resolved. Must not be null.ExternalReferenceResolverException - if the specified URI is relative and cannot be
absolutized, or if the specified URI cannot be resolved
with the mechanism explained above.public void setBaseURI(URI baseURI)
setBaseURI in interface ExternalReferenceResolverInterfacebaseURI - The base URI. Must not be null.