Library: Foundation
Package: URI
Header: Poco/URIStreamFactory.h
This class defines the interface that all URI stream factories must implement.
Subclasses must implement the open() method.
Known Derived Classes: FileStreamFactory, Poco::Net::FTPStreamFactory, Poco::Net::HTTPStreamFactory, Poco::Net::HTTPSStreamFactory, Poco::OSP::BundleStreamFactory
Member Functions: open
Creates the URIStreamFactory.
virtual ~URIStreamFactory();
Destroys the URIStreamFactory.
virtual std::istream * open(
const URI & uri
) = 0;
Tries to create and open an input stream for the resource specified by the given URI.
If the stream cannot be opened for whatever reason, an appropriate IOException must be thrown.
If opening the stream results in a redirect, a URIRedirection exception should be thrown.