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