Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
commons-0.11.0
Description
Currently the DataFileProvider only supports requests for resources. If a specific resource is available the caller gets an InputStream for that Resource. Otherwise a IOException is thrown.
Here the proposal is to add :
DataFileProvider (interface)
URL getInputStream(
String bundleSymbolicName,
String filename,
Map<String,String> comments) throws IOException;
Service that allows to return the location of data files to OSGi components.
eg. stanbol/datafile/path/to/file or jar:file:/home/.m2/repository/jarfile.jar!/path/to/file
Intended Usage:
Jira issue stanbol-1007 uses CMU Sphinx api. Sphinx needs the URL to load the model files. No such api has been provided yet by Sphinx to load the model as Stream.