#include <url.hpp>
Public Member Functions | |
file_stream_factory () | |
virtual | ~file_stream_factory () |
Protected Member Functions | |
virtual std::ostream * | do_get_ostream (url_parser const &url) const |
Creates an ostream for a file:// URL. | |
virtual std::istream * | do_get_istream (url_parser const &url) const |
Creates an istream for a file:// URL. |
file:[//]/path/to/file
It works for input and output.
If your libs11n is configured/built with s11n_CONFIG_HAVE_ZFSTREAM set to true then the zfstream library is used to support bzip2/gzip files.
Definition at line 268 of file url.hpp.
s11n::io::file_stream_factory::file_stream_factory | ( | ) |
virtual s11n::io::file_stream_factory::~file_stream_factory | ( | ) | [virtual] |
virtual std::ostream* s11n::io::file_stream_factory::do_get_ostream | ( | url_parser const & | url | ) | const [protected, virtual] |
Creates an ostream for a file:// URL.
If your s11n is built with zfstream support, then the compressors supported by that library are supported here.
The caller owns the returned pointer, which may be 0.
Reimplemented from s11n::io::url_stream_factory.
virtual std::istream* s11n::io::file_stream_factory::do_get_istream | ( | url_parser const & | url | ) | const [protected, virtual] |
Creates an istream for a file:// URL.
If your s11n is built with zfstream support, then the compressors supported by that library are supported here.
The caller owns the returned pointer, which may be 0.
Reimplemented from s11n::io::url_stream_factory.