Library: OSP
Package: Util
Header: Poco/OSP/BundleStreamFactory.h
An implementation of the URIStreamFactory interface that handles Bundle (bndl) URIs for accessing resources stored in bundles.
The format of a bndl URI is:
bndl://<symbolic-name>/<resource-path>
Example: bndl://com.appinf.osp.sample-bundle/sample.txt
Direct Base Classes: Poco::URIStreamFactory
All Base Classes: Poco::URIStreamFactory
Member Functions: open, registerFactory
Inherited Functions: open
BundleStreamFactory(
BundleLoader & loader
);
Creates the BundleStreamFactory, using the given bundle loader.
Destroys the BundleStreamFactory.
virtual std::istream * open(
const Poco::URI & uri
);
Creates and opens a stream for the given bndl URI.
static void registerFactory(
BundleLoader & loader
);
Registers the BundleStreamFactory with the default URIStreamOpener instance.