class Poco::URIStreamFactory
Overview
This class defines the interface that all URI stream factories must implement. Moreā¦
#include <URIStreamFactory.h> class URIStreamFactory { public: // methods virtual std::istream* open(const URI& uri) = 0; }; // direct descendants class FileStreamFactory; class FTPStreamFactory; class HTTPStreamFactory;
Detailed Documentation
This class defines the interface that all URI stream factories must implement.
Subclasses must implement the open() method.
Methods
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.