@@ -270,7 +270,7 @@ public class FTPClient extends FTP
270
270
private int __dataConnectionMode , __dataTimeout ;
271
271
private int __passivePort ;
272
272
private String __passiveHost ;
273
- private Random __random ;
273
+ private final Random __random ;
274
274
private int __activeMinPort , __activeMaxPort ;
275
275
private InetAddress __activeExternalHost ;
276
276
private int __fileType , __fileFormat , __fileStructure , __fileTransferMode ;
@@ -1378,6 +1378,8 @@ public boolean completePendingCommand() throws IOException
1378
1378
* If the current file type is ASCII, line separators in the file are
1379
1379
* converted to the local representation.
1380
1380
* <p>
1381
+ * Note: if you have used {@link #setRestartOffset(long)},
1382
+ * the file data will start from the selected offset.
1381
1383
* @param remote The name of the remote file.
1382
1384
* @param local The local OutputStream to which to write the file.
1383
1385
* @return True if successfully completed, false if not.
@@ -1439,6 +1441,9 @@ public boolean retrieveFile(String remote, OutputStream local)
1439
1441
* {@link #completePendingCommand completePendingCommand } and
1440
1442
* check its return value to verify success.
1441
1443
* <p>
1444
+ * Note: if you have used {@link #setRestartOffset(long)},
1445
+ * the file data will start from the selected offset.
1446
+ *
1442
1447
* @param remote The name of the remote file.
1443
1448
* @return An InputStream from which the remote file can be read. If
1444
1449
* the data connection cannot be opened (e.g., the file does not
0 commit comments