![]() |
Qore FileLocationHandler Module Reference 2.3
|
The abstract file location handler class. More...
#include <FileLocationHandler.qc.dox.h>
Public Member Methods | |
| binary | getBinaryFile (string scheme, string location, *hash< auto > opts) |
| Retrieves a binary file from the given location. | |
| Qore::InputStream | getBinaryStream (string scheme, string location, *hash< auto > opts) |
| Retrieves a binary file from the given location. | |
| Qore::AbstractPollOperation | getIoPollerForLocation (string scheme, string location, *hash< auto > opts) |
| Retrieves an I/O poller to retrieve a binary file from the given location. | |
| OutputStreamWrapper | getOutputStream (string scheme, string location, *hash< auto > opts) |
| Returns an output stream for writing data to the given location. | |
| hash< string, hash< FileHandlerOptionInfo > > | getReadOptions () |
| Gets supported read options. | |
| Qore::StreamReader | getStreamReader (string scheme, string location, *hash< auto > opts) |
| Returns a string stream for the file's data at the given location. | |
| string | getTextFile (string scheme, string location, *hash< auto > opts) |
| Retrieves a text file from the given location. | |
| hash< string, hash< FileHandlerOptionInfo > > | getWriteOptions () |
| Gets supported write options. | |
| writeFile (string scheme, string location, data contents, *hash< auto > opts) | |
| Writes data to a file at the given location. | |
Private Member Methods | |
| abstract binary | getBinaryFileImpl (string scheme, string location, *hash< auto > opts) |
| Retrieves a binary file from the given location. | |
| abstract Qore::InputStream | getBinaryStreamImpl (string scheme, string location, *hash< auto > opts) |
| Retrieves a binary file from the given location. | |
| abstract Qore::AbstractPollOperation | getIoPollerForLocationImpl (string scheme, string location, *hash< auto > opts) |
| Retrieves an I/O poller to retrieve a binary file from the given location. | |
| abstract OutputStreamWrapper | getOutputStreamImpl (string scheme, string location, *hash< auto > opts) |
| Returns an output stream for writing data to the given location. | |
| abstract hash< string, hash< FileHandlerOptionInfo > > | getReadOptionsImpl () |
| Gets supported read options. | |
| abstract Qore::StreamReader | getStreamReaderImpl (string scheme, string location, *hash< auto > opts) |
| Returns a string stream for the file's data at the given location. | |
| abstract string | getTextFileImpl (string scheme, string location, *hash< auto > opts) |
| Retrieves a text file from the given location. | |
| abstract hash< string, hash< FileHandlerOptionInfo > > | getWriteOptionsImpl () |
| Gets supported write options. | |
| abstract | writeFileImpl (string scheme, string location, data contents, *hash< auto > opts) |
| Writes data to a file at the given location. | |
Static Private Member Methods | |
| static string | forceEncoding (string str, *string encoding) |
| Returns a string tagged with the given encoding, if any. | |
The abstract file location handler class.
| binary FileLocationHandler::AbstractFileLocationHandler::getBinaryFile | ( | string | scheme, |
| string | location, | ||
| *hash< auto > | opts | ||
| ) |
Retrieves a binary file from the given location.
| scheme | the scheme being used |
| location | the location string without the scheme |
| opts | read options |
|
private |
Retrieves a binary file from the given location.
| scheme | the scheme being used |
| location | the location string without the scheme |
| opts | read options |
| Qore::InputStream FileLocationHandler::AbstractFileLocationHandler::getBinaryStream | ( | string | scheme, |
| string | location, | ||
| *hash< auto > | opts | ||
| ) |
Retrieves a binary file from the given location.
| scheme | the scheme being used |
| location | the location string without the scheme |
| opts | read options |
|
private |
Retrieves a binary file from the given location.
| scheme | the scheme being used |
| location | the location string without the scheme |
| opts | read options |
| Qore::AbstractPollOperation FileLocationHandler::AbstractFileLocationHandler::getIoPollerForLocation | ( | string | scheme, |
| string | location, | ||
| *hash< auto > | opts | ||
| ) |
Retrieves an I/O poller to retrieve a binary file from the given location.
| scheme | the scheme being used |
| location | the location string without the scheme |
| opts | read options |
|
private |
Retrieves an I/O poller to retrieve a binary file from the given location.
| scheme | the scheme being used |
| location | the location string without the scheme |
| opts | read options |
| OutputStreamWrapper FileLocationHandler::AbstractFileLocationHandler::getOutputStream | ( | string | scheme, |
| string | location, | ||
| *hash< auto > | opts | ||
| ) |
Returns an output stream for writing data to the given location.
| scheme | the scheme being used |
| location | the location string without the scheme |
| opts | write options |
|
private |
Returns an output stream for writing data to the given location.
| scheme | the scheme being used |
| location | the location string without the scheme |
| opts | write options |
| hash< string, hash< FileHandlerOptionInfo > > FileLocationHandler::AbstractFileLocationHandler::getReadOptions | ( | ) |
Gets supported read options.
|
private |
Gets supported read options.
| Qore::StreamReader FileLocationHandler::AbstractFileLocationHandler::getStreamReader | ( | string | scheme, |
| string | location, | ||
| *hash< auto > | opts | ||
| ) |
Returns a string stream for the file's data at the given location.
| scheme | the scheme being used |
| location | the location string without the scheme |
| opts | read options |
|
private |
Returns a string stream for the file's data at the given location.
| scheme | the scheme being used |
| location | the location string without the scheme |
| opts | read options |
| string FileLocationHandler::AbstractFileLocationHandler::getTextFile | ( | string | scheme, |
| string | location, | ||
| *hash< auto > | opts | ||
| ) |
Retrieves a text file from the given location.
| scheme | the scheme being used |
| location | the location string without the scheme or options |
| opts | read options |
|
private |
Retrieves a text file from the given location.
| scheme | the scheme being used |
| location | the location string without the scheme |
| opts | read options |
| hash< string, hash< FileHandlerOptionInfo > > FileLocationHandler::AbstractFileLocationHandler::getWriteOptions | ( | ) |
Gets supported write options.
|
private |
Gets supported write options.
| FileLocationHandler::AbstractFileLocationHandler::writeFile | ( | string | scheme, |
| string | location, | ||
| data | contents, | ||
| *hash< auto > | opts | ||
| ) |
Writes data to a file at the given location.
| scheme | the scheme being used |
| location | the location string without the scheme |
| contents | the file's contents |
| opts | write options |
|
private |
Writes data to a file at the given location.
| scheme | the scheme being used |
| location | the location string without the scheme |
| contents | the file's contents |
| opts | write options |