class Poco::FileStreamFactory

Overview

An implementation of the URIStreamFactory interface that handles file URIs. Moreā€¦

#include <FileStreamFactory.h>

class FileStreamFactory: public Poco::URIStreamFactory
{
public:
    // methods

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

    std::istream*
    open(const Path& path);
};

Inherited Members

public:
    // methods

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

Detailed Documentation

An implementation of the URIStreamFactory interface that handles file URIs.

Construction

~FileStreamFactory()

Destroys the FileStreamFactory.

Methods

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

Creates and opens a file stream in binary mode for the given URI.

The URI must be either a file URI or a relative URI reference containing a path to a local file.

Throws an FileNotFound exception if the file cannot be opened.

std::istream*
open(const Path& path)

Creates and opens a file stream in binary mode for the given path.

Throws an FileNotFound exception if the file cannot be opened.