[
https://issues.apache.org/jira/browse/STANBOL-1355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Suman Saurabh updated STANBOL-1355:
-----------------------------------
Summary: DataFileProvider should provide location of data files to OSGi
components. (was: DataFileProvider provides data files as InputStreams as
well as return the location of data files to OSGi components. )
> DataFileProvider should provide location of data files to OSGi components.
> ---------------------------------------------------------------------------
>
> Key: STANBOL-1355
> URL: https://issues.apache.org/jira/browse/STANBOL-1355
> Project: Stanbol
> Issue Type: Improvement
> Components: Commons
> Affects Versions: commons-0.11.0
> Reporter: Suman Saurabh
> Priority: Minor
> Labels: DataFileProvider, URL
> Fix For: commons-0.11.0
>
> Original Estimate: 504h
> Remaining Estimate: 504h
>
> 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 :
> {code:xml}
> DataFileProvider (interface)
> URL getInputStream(
> String bundleSymbolicName,
> String filename,
> Map<String,String> comments) throws IOException;
> {code}
> Service that allows to return the location of data files to OSGi components.
> Intended Usage:
> Jira issue [stanbol-1007|https://issues.apache.org/jira/browse/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.
--
This message was sent by Atlassian JIRA
(v6.2#6252)