Qore FileLocationHandler Module Reference 2.2
Loading...
Searching...
No Matches

Introduction to the FileLocationHandler Module

The FileLocationHandler module provides an API for returning file data based on a URL-like location string.

To retrieve file data, call one of:

To write file data, call one of:

To register a location handler based on a scheme, call one of:

This module provides the following classes:

FileLocationHandler Environment variable

The QORE_FILE_LOCATION_HANDLERS environment variable will be read to initialize modules that provide support for custom URL schemes; multiple modules can be separated by the OS-specific path separator (: on Linux / UNIX, ; on Windows).

Each module listed in this environment variable should call either FileLocationHandler::registerHandler() or FileLocationHandler::tryRegisterHandler() in its init code to register a handler for a new scheme.

Release Notes

FileLocationHandler v2.2

  • added support for rest:// and rests:// locations (issue 4669)
  • added support for runtime extensibility from environment variables (issue 4667)

FileLocationHandler v2.1

  • added support for immediate data:// locations (issue 4626)

FileLocationHandler v2.0

  • updated for read/write operations and added streaming APIs (issue 4424)

FileLocationHandler v1.0

  • initial release of the module