| Qore FileLocationHandler Module Reference 1.0

FileLocationHandler Module

# 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:

- FileLocationHandler::getTextFileFromLocation()
- FileLocationHandler::getBinaryFileFromLocation()

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

- FileLocationHandler::registerHandler()

This module provides the following classes:

- FileLocationHandler: the main API class
- FileLocationHandlerFile: class handling `"file://"` locations (the default if no scheme is present in the location string)
- FileLocationHandlerFtp: class handling `"ftp://"` and `"ftps://"` locations
- FileLocationHandlerHttp: class handling `"http://"` and `"https://"` locations
- FileLocationHandlerSftp: class handling `"sftp://"` locations

# Release Notes

## FileLocationHandler v1.0

- initial release of the module