public abstract static class Storage.PackageResolver
extends java.lang.Object
| Constructor and Description |
|---|
PackageResolver() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.net.URI |
getContentDirBaseURI()
The base URI of the package "content directory".
|
abstract java.lang.String |
getResourceName() |
abstract javax.xml.transform.Source |
resolveComponent(java.lang.String path)
Resolve a resource within the package "content directory".
|
abstract javax.xml.transform.Source |
resolveResource(java.lang.String path)
Resolve a resource within the "package directory".
|
public abstract java.lang.String getResourceName()
public abstract javax.xml.transform.Source resolveResource(java.lang.String path)
throws PackageException,
Storage.NotExistException
path - The path to resolve, relative to the package directory.Source object.Storage.NotExistException - if the corresponding resource does not exist
in the package.PackageException - in case of any other error.public abstract javax.xml.transform.Source resolveComponent(java.lang.String path)
throws PackageException,
Storage.NotExistException
path - The path to resolve, relative to the package content
directory.Source object.Storage.NotExistException - if the corresponding component does not exist
in the package.PackageException - in case of any other error.public abstract java.net.URI getContentDirBaseURI()
throws PackageException
URI.resolve(String) on the returned value, with a
relative filename, must resolve this filename in the installed package
"content directory".
Use with caution, especially on storages not on a (regular) file-system.PackageException - in case of any error. Also thrown by storage
implementations for which such a URI does not make sense.Copyright © 2015-2024 EXPath. All Rights Reserved