Qore FileLocationHandler Module Reference 2.3
Loading...
Searching...
No Matches
FileLocationHandlerFtp.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
4/* FileLocationHandlerFtp Copyright 2021 - 2024 Qore Technologies, s.r.o.
5
6 Permission is hereby granted, free of charge, to any person obtaining a
7 copy of this software and associated documentation files (the "Software"),
8 to deal in the Software without restriction, including without limitation
9 the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 and/or sell copies of the Software, and to permit persons to whom the
11 Software is furnished to do so, subject to the following conditions:
12
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
15
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 DEALINGS IN THE SOFTWARE.
23*/
24
26namespace FileLocationHandler {
28
31
32public:
34
37
38
40
48protected:
49 string getTextFileImpl(string scheme, string location, *hash<auto> opts);
50public:
51
52
54
62protected:
63 binary getBinaryFileImpl(string scheme, string location, *hash<auto> opts);
64public:
65
66
68
74protected:
75 Qore::AbstractPollOperation getIoPollerForLocationImpl(string scheme, string location, *hash<auto> opts);
76public:
77
78
80
88protected:
89 Qore::StreamReader getStreamReaderImpl(string scheme, string location, *hash<auto> opts);
90public:
91
92
94
102protected:
103 Qore::InputStream getBinaryStreamImpl(string scheme, string location, *hash<auto> opts);
104public:
105
106
108
115protected:
116 writeFileImpl(string scheme, string location, data contents, *hash<auto> opts);
117public:
118
119
121
134protected:
135 OutputStreamWrapper getOutputStreamImpl(string scheme, string location, *hash<auto> opts);
136public:
137
138
140
142protected:
143 hash<string, hash<FileHandlerOptionInfo>> getReadOptionsImpl();
144public:
145
146
148
150protected:
151 hash<string, hash<FileHandlerOptionInfo>> getWriteOptionsImpl();
152public:
153
154
156 /*
157 @note This method can throw any exception related to making an FTP connection
158 */
159protected:
160 FtpClient getFtpClient(string scheme, string location, *hash<auto> opts, reference<string> file);
161public:
162
163};
164};
The abstract file location handler class.
Definition FileLocationHandler.qc.dox.h:53
The class for handling "ftp(s)://"" locations.
Definition FileLocationHandlerFtp.qc.dox.h:30
hash< string, hash< FileHandlerOptionInfo > > getWriteOptionsImpl()
Gets supported write options.
string getTextFileImpl(string scheme, string location, *hash< auto > opts)
Retrieves a text file from the given location.
binary getBinaryFileImpl(string scheme, string location, *hash< auto > opts)
Retrieves a binary file from the given location.
FtpClient getFtpClient(string scheme, string location, *hash< auto > opts, reference< string > file)
Returns an FTP client for the given location.
hash< string, hash< FileHandlerOptionInfo > > getReadOptionsImpl()
Gets supported read options.
Qore::StreamReader getStreamReaderImpl(string scheme, string location, *hash< auto > opts)
Returns a stream reader for the file's data at the given location.
const FtpClientLocationOpts
Valid common file location options.
Definition FileLocationHandlerFtp.qc.dox.h:36
Qore::InputStream getBinaryStreamImpl(string scheme, string location, *hash< auto > opts)
Retrieves a binary file from the given location.
OutputStreamWrapper getOutputStreamImpl(string scheme, string location, *hash< auto > opts)
Returns an output stream for writing data to the given location.
Qore::AbstractPollOperation getIoPollerForLocationImpl(string scheme, string location, *hash< auto > opts)
Retrieves an I/O poller to retrieve a binary file from the given location.
writeFileImpl(string scheme, string location, data contents, *hash< auto > opts)
Writes data to a file at the given location.
The abstract file location handler class.
Definition OutputStramWrapper.qc.dox.h:28
Contains all public definitions in the FileLocationHandler module.
Definition FileLocationHandler.qc.dox.h:26