comparison src/main/java/org/monetdb/jdbc/MonetConnection.java @ 542:d462000fc410 onclient

Various changes suggested by Martin van Dinther
author Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
date Thu, 02 Sep 2021 15:13:46 +0200 (2021-09-02)
parents 31df6a12fd41
children eb7ecfbb48f2
comparison
equal deleted inserted replaced
541:31df6a12fd41 542:d462000fc410
3272 * To be registered with {@link MonetConnection#setUploadHandler(UploadHandler)} 3272 * To be registered with {@link MonetConnection#setUploadHandler(UploadHandler)}
3273 */ 3273 */
3274 3274
3275 public static interface UploadHandler { 3275 public static interface UploadHandler {
3276 /** 3276 /**
3277 * Called if the server sends a request to write a file. 3277 * Called if the server sends a request to read file data.
3278 * 3278 *
3279 * Use the given handle to receive data or send errors to the server. 3279 * Use the given handle to receive data or send errors to the server.
3280 * 3280 *
3281 * @param handle Handle to communicate with the server 3281 * @param handle Handle to communicate with the server
3282 * @param name Name of the file the server would like to read. Make sure to validate this before reading from 3282 * @param name Name of the file the server would like to read. Make sure
3283 * the file system 3283 * to validate this before reading from the file system
3284 * @param textMode Whether this is text or binary data. 3284 * @param textMode Whether this is text or binary data.
3285 * @param offset line number of the first line to upload. Both 0 and 1
3286 * mean 'upload the whole file', 2 means 'skip line 1',
3287 * etc.
3285 */ 3288 */
3286 void handleUpload(Upload handle, String name, boolean textMode, int offset) throws IOException; 3289 void handleUpload(Upload handle, String name, boolean textMode, int offset) throws IOException;
3287 } 3290 }
3288 3291
3289 /** 3292 /**