41 static hash<string, code>
cache;
static data getFileFromLocation(bool text, string location)
Returns the file data from the given location.
static bool isSchemeSupported(string scheme)
Returns True if the scheme is supported.
static hash< string, code > cache
The location handler cache; scheme -> handler;.
Definition: FileLocationHandler.qc.dox.h:41
static list< string > getSupportedSchemes()
Retuns a list of supported schemes.
static data getTextOrBin(data d, bool text, *string encoding)
Helper method to eturn data in the expected format.
static *hash< auto > getOptions(reference< string > location)
Returns a hash option options from the location string.
static registerHandler(string scheme, code handler)
Register a new location handler.
static binary getBinaryFileFromLocation(string location)
Returns binary data for the given file location.
static Mutex handler_lock()
The location handler lock to ensure atomic operations.
static string forceEncoding(string str, *string encoding)
Returns a string tagged with the given encoding, if any.
static string getTextFileFromLocation(string location)
Returns string data for the given file location.
Contains all public definitions in the FileLocationHandler module.
Definition: FileLocationHandler.qc.dox.h:32