Poco::OSP

class BundleStreamFactory

File Information

Library: OSP
Package: Util
Header: Poco/OSP/BundleStreamFactory.h

Description

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

Inheritance

Direct Base Classes: Poco::URIStreamFactory

All Base Classes: Poco::URIStreamFactory

Member Summary

Member Functions: open, registerFactory, unregisterFactory

Inherited Functions: open

Constructors

BundleStreamFactory

BundleStreamFactory(
    BundleLoader & loader
);

Creates the BundleStreamFactory, using the given bundle loader.

Destructor

~BundleStreamFactory virtual

~BundleStreamFactory();

Destroys the BundleStreamFactory.

Member Functions

open virtual

virtual std::istream * open(
    const Poco::URI & uri
);

Creates and opens a stream for the given bndl URI.

registerFactory static

static void registerFactory(
    BundleLoader & loader
);

Registers the BundleStreamFactory with the default URIStreamOpener instance.

unregisterFactory static

static void unregisterFactory();

Registers the BundleStreamFactory with the default URIStreamOpener instance.

Securely control IoT edge devices from anywhere   Connect a Device