diff 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
line wrap: on
line diff
--- a/src/main/java/org/monetdb/jdbc/MonetConnection.java
+++ b/src/main/java/org/monetdb/jdbc/MonetConnection.java
@@ -3274,14 +3274,17 @@ public class MonetConnection
 
 	public static interface UploadHandler {
 		/**
-		 * Called if the server sends a request to write a file.
+		 * Called if the server sends a request to read file data.
 		 *
 		 * Use the given handle to receive data or send errors to the server.
 		 *
 		 * @param handle Handle to communicate with the server
-		 * @param name Name of the file the server would like to read. Make sure to validate this before reading from
-		 *             the file system
+		 * @param name Name of the file the server would like to read. Make sure
+		 *             to validate this before reading from the file system
 		 * @param textMode Whether this is text or binary data.
+		 * @param offset line number of the first line to upload. Both 0 and 1
+		 *               mean 'upload the whole file', 2 means 'skip line 1',
+		 *               etc.
 		 */
 		void handleUpload(Upload handle, String name, boolean textMode, int offset) throws IOException;
 	}