This file is indexed.

/usr/share/doc/libcommons-net2-java/api/org/apache/commons/net/ftp/FTPClient.html is in libcommons-net2-java-doc 2.2-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_03) on Wed May 30 10:19:42 UTC 2012 -->
<title>FTPClient (libcommons-net2-java API)</title>
<meta name="date" content="2012-05-30">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="FTPClient (libcommons-net2-java API)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/commons/net/ftp/FTP.html" title="class in org.apache.commons.net.ftp"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/commons/net/ftp/FTPClientConfig.html" title="class in org.apache.commons.net.ftp"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/commons/net/ftp/FTPClient.html" target="_top">Frames</a></li>
<li><a href="FTPClient.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.commons.net.ftp</div>
<h2 title="Class FTPClient" class="title">Class FTPClient</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/commons/net/SocketClient.html" title="class in org.apache.commons.net">org.apache.commons.net.SocketClient</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/commons/net/ftp/FTP.html" title="class in org.apache.commons.net.ftp">org.apache.commons.net.ftp.FTP</a></li>
<li>
<ul class="inheritance">
<li>org.apache.commons.net.ftp.FTPClient</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../org/apache/commons/net/ftp/Configurable.html" title="interface in org.apache.commons.net.ftp">Configurable</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../../org/apache/commons/net/ftp/FTPHTTPClient.html" title="class in org.apache.commons.net.ftp">FTPHTTPClient</a>, <a href="../../../../../org/apache/commons/net/ftp/FTPSClient.html" title="class in org.apache.commons.net.ftp">FTPSClient</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">FTPClient</span>
extends <a href="../../../../../org/apache/commons/net/ftp/FTP.html" title="class in org.apache.commons.net.ftp">FTP</a>
implements <a href="../../../../../org/apache/commons/net/ftp/Configurable.html" title="interface in org.apache.commons.net.ftp">Configurable</a></pre>
<div class="block">FTPClient encapsulates all the functionality necessary to store and
 retrieve files from an FTP server.  This class takes care of all
 low level details of interacting with an FTP server and provides
 a convenient higher level interface.  As with all classes derived
 from <a href="../../../../../org/apache/commons/net/SocketClient.html" title="class in org.apache.commons.net"><code>SocketClient</code></a>,
 you must first connect to the server with
 <a href="../../../../../org/apache/commons/net/SocketClient.html#connect(java.net.InetAddress, int)"><code>connect </code></a>
 before doing anything, and finally
 <a href="../../../../../org/apache/commons/net/SocketClient.html#disconnect()"><code>disconnect </code></a>
 after you're completely finished interacting with the server.
 Then you need to check the FTP reply code to see if the connection
 was successful.  For example:
 <pre>
    boolean error = false;
    try {
      int reply;
      ftp.connect("ftp.foobar.com");
      System.out.println("Connected to " + server + ".");
      System.out.print(ftp.getReplyString());

      // After connection attempt, you should check the reply code to verify
      // success.
      reply = ftp.getReplyCode();

      if(!FTPReply.isPositiveCompletion(reply)) {
        ftp.disconnect();
        System.err.println("FTP server refused connection.");
        System.exit(1);
      }
      ... // transfer files
      ftp.logout();
    } catch(IOException e) {
      error = true;
      e.printStackTrace();
    } finally {
      if(ftp.isConnected()) {
        try {
          ftp.disconnect();
        } catch(IOException ioe) {
          // do nothing
        }
      }
      System.exit(error ? 1 : 0);
    }
 </pre>
 <p>
 Immediately after connecting is the only real time you need to check the
 reply code (because connect is of type void).  The convention for all the
 FTP command methods in FTPClient is such that they either return a
 boolean value or some other value.
 The boolean methods return true on a successful completion reply from
 the FTP server and false on a reply resulting in an error condition or
 failure.  The methods returning a value other than boolean return a value
 containing the higher level data produced by the FTP command, or null if a
 reply resulted in an error condition or failure.  If you want to access
 the exact FTP reply code causing a success or failure, you must call
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyCode()"><code>getReplyCode </code></a> after
 a success or failure.
 <p>
 The default settings for FTPClient are for it to use
 <code> FTP.ASCII_FILE_TYPE </code>,
 <code> FTP.NON_PRINT_TEXT_FORMAT </code>,
 <code> FTP.STREAM_TRANSFER_MODE </code>, and
 <code> FTP.FILE_STRUCTURE </code>.  The only file types directly supported
 are <code> FTP.ASCII_FILE_TYPE </code> and
 <code> FTP.BINARY_FILE_TYPE </code>.  Because there are at least 4
 different EBCDIC encodings, we have opted not to provide direct support
 for EBCDIC.  To transfer EBCDIC and other unsupported file types you
 must create your own filter InputStreams and OutputStreams and wrap
 them around the streams returned or required by the FTPClient methods.
 FTPClient uses the <a href="../../../../../org/apache/commons/net/io/ToNetASCIIOutputStream.html" title="class in org.apache.commons.net.io"><code>NetASCII</code></a>
 filter streams to provide transparent handling of ASCII files.  We will
 consider incorporating EBCDIC support if there is enough demand.
 <p>
 <code> FTP.NON_PRINT_TEXT_FORMAT </code>,
 <code> FTP.STREAM_TRANSFER_MODE </code>, and
 <code> FTP.FILE_STRUCTURE </code> are the only supported formats,
 transfer modes, and file structures.
 <p>
 Because the handling of sockets on different platforms can differ
 significantly, the FTPClient automatically issues a new PORT (or EPRT) command
 prior to every transfer requiring that the server connect to the client's
 data port.  This ensures identical problem-free behavior on Windows, Unix,
 and Macintosh platforms.  Additionally, it relieves programmers from
 having to issue the PORT (or EPRT) command themselves and dealing with platform
 dependent issues.
 <p>
 Additionally, for security purposes, all data connections to the
 client are verified to ensure that they originated from the intended
 party (host and port).  If a data connection is initiated by an unexpected
 party, the command will close the socket and throw an IOException.  You
 may disable this behavior with
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setRemoteVerificationEnabled(boolean)"><code>setRemoteVerificationEnabled()</code></a>.
 <p>
 You should keep in mind that the FTP server may choose to prematurely
 close a connection if the client has been idle for longer than a
 given time period (usually 900 seconds).  The FTPClient class will detect a
 premature FTP server connection closing when it receives a
 <a href="../../../../../org/apache/commons/net/ftp/FTPReply.html#SERVICE_NOT_AVAILABLE"><code>FTPReply.SERVICE_NOT_AVAILABLE </code></a>
  response to a command.
 When that occurs, the FTP class method encountering that reply will throw
 an <a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp"><code>FTPConnectionClosedException</code></a>
 .
 <code>FTPConnectionClosedException</code>
 is a subclass of <code> IOException </code> and therefore need not be
 caught separately, but if you are going to catch it separately, its
 catch block must appear before the more general <code> IOException </code>
 catch block.  When you encounter an
 <a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp"><code>FTPConnectionClosedException</code></a>
 , you must disconnect the connection with
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#disconnect()"><code>disconnect() </code></a> to properly clean up the
 system resources used by FTPClient.  Before disconnecting, you may check the
 last reply code and text with
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyCode()"><code>getReplyCode </code></a>,
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyString()"><code>getReplyString </code></a>,
 and
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyStrings()"><code>getReplyStrings</code></a>.
 You may avoid server disconnections while the client is idle by
 periodically sending NOOP commands to the server.
 <p>
 Rather than list it separately for each method, we mention here that
 every method communicating with the server and throwing an IOException
 can also throw a
 <a href="../../../../../org/apache/commons/net/MalformedServerReplyException.html" title="class in org.apache.commons.net"><code>MalformedServerReplyException</code></a>
 , which is a subclass
 of IOException.  A MalformedServerReplyException will be thrown when
 the reply received from the server deviates enough from the protocol
 specification that it cannot be interpreted in a useful manner despite
 attempts to be as lenient as possible.
 <p>
 Listing API Examples
 Both paged and unpaged examples of directory listings are available,
 as follows:
 <p>
 Unpaged (whole list) access, using a parser accessible by auto-detect:
 <pre>
    FTPClient f = new FTPClient();
    f.connect(server);
    f.login(username, password);
    FTPFile[] files = listFiles(directory);
 </pre>
 <p>
 Paged access, using a parser not accessible by auto-detect.  The class
 defined in the first parameter of initateListParsing should be derived
 from org.apache.commons.net.FTPFileEntryParser:
 <pre>
    FTPClient f = new FTPClient();
    f.connect(server);
    f.login(username, password);
    FTPListParseEngine engine =
       f.initiateListParsing("com.whatever.YourOwnParser", directory);

    while (engine.hasNext()) {
       FTPFile[] files = engine.getNext(25);  // "page size" you want
       //do whatever you want with these files, display them, etc.
       //expensive FTPFile objects not created until needed.
    }
 </pre>
 <p>
 Paged access, using a parser accessible by auto-detect:
 <pre>
    FTPClient f = new FTPClient();
    f.connect(server);
    f.login(username, password);
    FTPListParseEngine engine = f.initiateListParsing(directory);

    while (engine.hasNext()) {
       FTPFile[] files = engine.getNext(25);  // "page size" you want
       //do whatever you want with these files, display them, etc.
       //expensive FTPFile objects not created until needed.
    }
 </pre>
 <p>
 For examples of using FTPClient on servers whose directory listings
 <ul>
 <li>use languages other than English</li>
 <li>use date formats other than the American English "standard" <code>MM d yyyy</code></li>
 <li>are in different timezones and you need accurate timestamps for dependency checking
     as in Ant</li>
 </ul>see <a href="../../../../../org/apache/commons/net/ftp/FTPClientConfig.html" title="class in org.apache.commons.net.ftp"><code>FTPClientConfig</code></a>.
 <p></div>
<dl><dt><span class="strong">Author:</span></dt>
  <dd>Daniel F. Savarese, Rory Winston</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/FTP.html" title="class in org.apache.commons.net.ftp"><code>FTP</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp"><code>FTPConnectionClosedException</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/FTPFileEntryParser.html" title="interface in org.apache.commons.net.ftp"><code>FTPFileEntryParser</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.html" title="interface in org.apache.commons.net.ftp.parser"><code>FTPFileEntryParserFactory</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactory.html" title="class in org.apache.commons.net.ftp.parser"><code>DefaultFTPFileEntryParserFactory</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/FTPClientConfig.html" title="class in org.apache.commons.net.ftp"><code>FTPClientConfig</code></a>, 
<a href="../../../../../org/apache/commons/net/MalformedServerReplyException.html" title="class in org.apache.commons.net"><code>MalformedServerReplyException</code></a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#ACTIVE_LOCAL_DATA_CONNECTION_MODE">ACTIVE_LOCAL_DATA_CONNECTION_MODE</a></strong></code>
<div class="block">A constant indicating the FTP session is expecting all transfers
 to occur between the client (local) and server and that the server
 should connect to the client's data port to initiate a data transfer.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#ACTIVE_REMOTE_DATA_CONNECTION_MODE">ACTIVE_REMOTE_DATA_CONNECTION_MODE</a></strong></code>
<div class="block">A constant indicating the FTP session is expecting all transfers
 to occur between two remote servers and that the server
 the client is connected to should connect to the other server's
 data port to initiate a data transfer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#PASSIVE_LOCAL_DATA_CONNECTION_MODE">PASSIVE_LOCAL_DATA_CONNECTION_MODE</a></strong></code>
<div class="block">A constant indicating the FTP session is expecting all transfers
 to occur between the client (local) and server and that the server
 is in passive mode, requiring the client to connect to the
 server's data port to initiate a transfer.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#PASSIVE_REMOTE_DATA_CONNECTION_MODE">PASSIVE_REMOTE_DATA_CONNECTION_MODE</a></strong></code>
<div class="block">A constant indicating the FTP session is expecting all transfers
 to occur between two remote servers and that the server
 the client is connected to is in passive mode, requiring the other
 server to connect to the first server's data port to initiate a data
 transfer.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.apache.commons.net.ftp.FTP">
<!--   -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.commons.net.ftp.<a href="../../../../../org/apache/commons/net/ftp/FTP.html" title="class in org.apache.commons.net.ftp">FTP</a></h3>
<code><a href="../../../../../org/apache/commons/net/ftp/FTP.html#_commandSupport_">_commandSupport_</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_controlEncoding">_controlEncoding</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_controlInput_">_controlInput_</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_controlOutput_">_controlOutput_</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_newReplyString">_newReplyString</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_replyCode">_replyCode</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_replyLines">_replyLines</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_replyString">_replyString</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#ASCII_FILE_TYPE">ASCII_FILE_TYPE</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#BINARY_FILE_TYPE">BINARY_FILE_TYPE</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#BLOCK_TRANSFER_MODE">BLOCK_TRANSFER_MODE</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#CARRIAGE_CONTROL_TEXT_FORMAT">CARRIAGE_CONTROL_TEXT_FORMAT</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#COMPRESSED_TRANSFER_MODE">COMPRESSED_TRANSFER_MODE</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#DEFAULT_CONTROL_ENCODING">DEFAULT_CONTROL_ENCODING</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#DEFAULT_DATA_PORT">DEFAULT_DATA_PORT</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#DEFAULT_PORT">DEFAULT_PORT</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#EBCDIC_FILE_TYPE">EBCDIC_FILE_TYPE</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#FILE_STRUCTURE">FILE_STRUCTURE</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#LOCAL_FILE_TYPE">LOCAL_FILE_TYPE</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#NON_PRINT_TEXT_FORMAT">NON_PRINT_TEXT_FORMAT</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#PAGE_STRUCTURE">PAGE_STRUCTURE</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#RECORD_STRUCTURE">RECORD_STRUCTURE</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#STREAM_TRANSFER_MODE">STREAM_TRANSFER_MODE</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#strictMultilineParsing">strictMultilineParsing</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#TELNET_TEXT_FORMAT">TELNET_TEXT_FORMAT</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.apache.commons.net.SocketClient">
<!--   -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.commons.net.<a href="../../../../../org/apache/commons/net/SocketClient.html" title="class in org.apache.commons.net">SocketClient</a></h3>
<code><a href="../../../../../org/apache/commons/net/SocketClient.html#_defaultPort_">_defaultPort_</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#_input_">_input_</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#_output_">_output_</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#_serverSocketFactory_">_serverSocketFactory_</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#_socket_">_socket_</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#_socketFactory_">_socketFactory_</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#_timeout_">_timeout_</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#connectTimeout">connectTimeout</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#NETASCII_EOL">NETASCII_EOL</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#FTPClient()">FTPClient</a></strong>()</code>
<div class="block">Default FTPClient constructor.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#_connectAction_()">_connectAction_</a></strong>()</code>
<div class="block">Initiates control connections and gets initial reply.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="file:///usr/share/doc/default-jdk-doc/api/java/net/Socket.html?is-external=true" title="class or interface in java.net">Socket</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#_openDataConnection_(int, java.lang.String)">_openDataConnection_</a></strong>(int&nbsp;command,
                    <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;arg)</code>
<div class="block">Establishes a data connection with the FTP server, returning
 a Socket for the connection if successful.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#abort()">abort</a></strong>()</code>
<div class="block">Abort a transfer in progress.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#allocate(int)">allocate</a></strong>(int&nbsp;bytes)</code>
<div class="block">Reserve a number of bytes on the server for the next file transfer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#allocate(int, int)">allocate</a></strong>(int&nbsp;bytes,
        int&nbsp;recordSize)</code>
<div class="block">Reserve space on the server for the next file transfer.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#appendFile(java.lang.String, java.io.InputStream)">appendFile</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote,
          <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;local)</code>
<div class="block">Appends to a file on the server with the given name, taking input
 from the given InputStream.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#appendFileStream(java.lang.String)">appendFileStream</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote)</code>
<div class="block">Returns an OutputStream through which data can be written to append
 to a file on the server with the given name.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#changeToParentDirectory()">changeToParentDirectory</a></strong>()</code>
<div class="block">Change to the parent directory of the current working directory.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#changeWorkingDirectory(java.lang.String)">changeWorkingDirectory</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Change the current working directory of the FTP session.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#completePendingCommand()">completePendingCommand</a></strong>()</code>
<div class="block">There are a few FTPClient methods that do not complete the
 entire sequence of FTP commands to complete a transaction.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#configure(org.apache.commons.net.ftp.FTPClientConfig)">configure</a></strong>(<a href="../../../../../org/apache/commons/net/ftp/FTPClientConfig.html" title="class in org.apache.commons.net.ftp">FTPClientConfig</a>&nbsp;config)</code>
<div class="block">Implementation of the <a href="../../../../../org/apache/commons/net/ftp/Configurable.html" title="interface in org.apache.commons.net.ftp"><code>Configurable</code></a> interface.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#deleteFile(java.lang.String)">deleteFile</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Deletes a file on the FTP server.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#disconnect()">disconnect</a></strong>()</code>
<div class="block">Closes the connection to the FTP server and restores
 connection parameters to the default values.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterLocalActiveMode()">enterLocalActiveMode</a></strong>()</code>
<div class="block">Set the current data connection mode to
 <code>ACTIVE_LOCAL_DATA_CONNECTION_MODE</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterLocalPassiveMode()">enterLocalPassiveMode</a></strong>()</code>
<div class="block">Set the current data connection mode to
 <code> PASSIVE_LOCAL_DATA_CONNECTION_MODE </code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterRemoteActiveMode(java.net.InetAddress, int)">enterRemoteActiveMode</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/net/InetAddress.html?is-external=true" title="class or interface in java.net">InetAddress</a>&nbsp;host,
                     int&nbsp;port)</code>
<div class="block">Set the current data connection mode to
 <code> ACTIVE_REMOTE_DATA_CONNECTION </code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterRemotePassiveMode()">enterRemotePassiveMode</a></strong>()</code>
<div class="block">Set the current data connection mode to
 <code> PASSIVE_REMOTE_DATA_CONNECTION_MODE </code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#features()">features</a></strong>()</code>
<div class="block">Query the server for supported features.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getBufferSize()">getBufferSize</a></strong>()</code>
<div class="block">Retrieve the current internal buffer size.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getDataConnectionMode()">getDataConnectionMode</a></strong>()</code>
<div class="block">Returns the current data connection mode (one of the
 <code> _DATA_CONNECTION_MODE </code> constants.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getListArguments(java.lang.String)">getListArguments</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getListHiddenFiles()">getListHiddenFiles</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getModificationTime(java.lang.String)">getModificationTime</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Issue the FTP MDTM command (not supported by all servers to retrieve the last
 modification time of a file.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getPassiveHost()">getPassiveHost</a></strong>()</code>
<div class="block">Returns the hostname or IP address (in the form of a string) returned
 by the server when entering passive mode.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getPassivePort()">getPassivePort</a></strong>()</code>
<div class="block">If in passive mode, returns the data port of the passive host.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getRestartOffset()">getRestartOffset</a></strong>()</code>
<div class="block">Fetches the restart offset.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getStatus()">getStatus</a></strong>()</code>
<div class="block">Issue the FTP STAT command to the server.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getStatus(java.lang.String)">getStatus</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Issue the FTP STAT command to the server for a given pathname.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getSystemName()">getSystemName</a></strong>()</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>Use <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getSystemType()"><code>getSystemType()</code></a> - which does not return null.
  Will be deleted in version 3.0</i></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getSystemType()">getSystemType</a></strong>()</code>
<div class="block">Fetches the system type from the server and returns the string.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/net/ftp/FTPListParseEngine.html" title="class in org.apache.commons.net.ftp">FTPListParseEngine</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#initiateListParsing()">initiateListParsing</a></strong>()</code>
<div class="block">Using the default autodetect mechanism, initialize an FTPListParseEngine
 object containing a raw file information for the current working
 directory on the server
 This information is obtained through the LIST command.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/net/ftp/FTPListParseEngine.html" title="class in org.apache.commons.net.ftp">FTPListParseEngine</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#initiateListParsing(java.lang.String)">initiateListParsing</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Using the default autodetect mechanism, initialize an FTPListParseEngine
 object containing a raw file information for the supplied directory.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/net/ftp/FTPListParseEngine.html" title="class in org.apache.commons.net.ftp">FTPListParseEngine</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#initiateListParsing(java.lang.String, java.lang.String)">initiateListParsing</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;parserKey,
                   <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Using the supplied parser key, initialize an FTPListParseEngine
 object containing a raw file information for the supplied directory.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#isRemoteVerificationEnabled()">isRemoteVerificationEnabled</a></strong>()</code>
<div class="block">Return whether or not verification of the remote host participating
 in data connections is enabled.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#isUseEPSVwithIPv4()">isUseEPSVwithIPv4</a></strong>()</code>
<div class="block">Whether should attempt to use EPSV with IPv4.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listFiles()">listFiles</a></strong>()</code>
<div class="block">Using the default system autodetect mechanism, obtain a
 list of file information for the current working directory.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listFiles(java.lang.String)">listFiles</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Using the default system autodetect mechanism, obtain a
 list of file information for the current working directory
 or for just a single file.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listFiles(java.lang.String, org.apache.commons.net.ftp.FTPFileFilter)">listFiles</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname,
         <a href="../../../../../org/apache/commons/net/ftp/FTPFileFilter.html" title="interface in org.apache.commons.net.ftp">FTPFileFilter</a>&nbsp;filter)</code>
<div class="block">Version of <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listFiles(java.lang.String)"><code>listFiles(String)</code></a> which allows a filter to be provided.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listHelp()">listHelp</a></strong>()</code>
<div class="block">Fetches the system help information from the server and returns the
 full string.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listHelp(java.lang.String)">listHelp</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command)</code>
<div class="block">Fetches the help information for a given command from the server and
 returns the full string.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listNames()">listNames</a></strong>()</code>
<div class="block">Obtain a list of filenames in the current working directory
 This information is obtained through the NLST command.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listNames(java.lang.String)">listNames</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Obtain a list of filenames in a directory (or just the name of a given
 file, which is not particularly useful).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#login(java.lang.String, java.lang.String)">login</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;username,
     <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;password)</code>
<div class="block">Login to the FTP server using the provided username and password.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#login(java.lang.String, java.lang.String, java.lang.String)">login</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;username,
     <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;password,
     <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;account)</code>
<div class="block">Login to the FTP server using the provided username, password,
 and account.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#logout()">logout</a></strong>()</code>
<div class="block">Logout of the FTP server by sending the QUIT command.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#makeDirectory(java.lang.String)">makeDirectory</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Creates a new subdirectory on the FTP server in the current directory
 (if a relative pathname is given) or where specified (if an absolute
 pathname is given).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#printWorkingDirectory()">printWorkingDirectory</a></strong>()</code>
<div class="block">Returns the pathname of the current working directory.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#remoteAppend(java.lang.String)">remoteAppend</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filename)</code>
<div class="block">Initiate a server to server file transfer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#remoteRetrieve(java.lang.String)">remoteRetrieve</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filename)</code>
<div class="block">Initiate a server to server file transfer.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#remoteStore(java.lang.String)">remoteStore</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filename)</code>
<div class="block">Initiate a server to server file transfer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#remoteStoreUnique()">remoteStoreUnique</a></strong>()</code>
<div class="block">Initiate a server to server file transfer.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#remoteStoreUnique(java.lang.String)">remoteStoreUnique</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filename)</code>
<div class="block">Initiate a server to server file transfer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#removeDirectory(java.lang.String)">removeDirectory</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Removes a directory on the FTP server (if empty).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#rename(java.lang.String, java.lang.String)">rename</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;from,
      <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;to)</code>
<div class="block">Renames a remote file.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#retrieveFile(java.lang.String, java.io.OutputStream)">retrieveFile</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote,
            <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;local)</code>
<div class="block">Retrieves a named file from the server and writes it to the given
 OutputStream.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#retrieveFileStream(java.lang.String)">retrieveFileStream</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote)</code>
<div class="block">Returns an InputStream from which a named file from the server
 can be read.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#sendNoOp()">sendNoOp</a></strong>()</code>
<div class="block">Sends a NOOP command to the FTP server.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#sendSiteCommand(java.lang.String)">sendSiteCommand</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;arguments)</code>
<div class="block">Send a site specific command.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setActiveExternalIPAddress(java.lang.String)">setActiveExternalIPAddress</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;ipAddress)</code>
<div class="block">Set the external IP address in active mode.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setActivePortRange(int, int)">setActivePortRange</a></strong>(int&nbsp;minPort,
                  int&nbsp;maxPort)</code>
<div class="block">Set the client side port range in active mode.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setBufferSize(int)">setBufferSize</a></strong>(int&nbsp;bufSize)</code>
<div class="block">Set the internal buffer size.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setDataTimeout(int)">setDataTimeout</a></strong>(int&nbsp;timeout)</code>
<div class="block">Sets the timeout in milliseconds to use when reading from the
 data connection.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setFileStructure(int)">setFileStructure</a></strong>(int&nbsp;structure)</code>
<div class="block">Sets the file structure.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setFileTransferMode(int)">setFileTransferMode</a></strong>(int&nbsp;mode)</code>
<div class="block">Sets the transfer mode.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setFileType(int)">setFileType</a></strong>(int&nbsp;fileType)</code>
<div class="block">Sets the file type to be transferred.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setFileType(int, int)">setFileType</a></strong>(int&nbsp;fileType,
           int&nbsp;formatOrByteSize)</code>
<div class="block">Sets the file type to be transferred and the format.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setListHiddenFiles(boolean)">setListHiddenFiles</a></strong>(boolean&nbsp;listHiddenFiles)</code>
<div class="block">You can set this to true if you would like to get hidden files when <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listFiles(java.lang.String)"><code>listFiles(java.lang.String)</code></a> too.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setModificationTime(java.lang.String, java.lang.String)">setModificationTime</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname,
                   <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;timeval)</code>
<div class="block">Issue the FTP MFMT command (not supported by all servers) which sets the last
 modified time of a file.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setParserFactory(org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory)">setParserFactory</a></strong>(<a href="../../../../../org/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.html" title="interface in org.apache.commons.net.ftp.parser">FTPFileEntryParserFactory</a>&nbsp;parserFactory)</code>
<div class="block">set the factory used for parser creation to the supplied factory object.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setRemoteVerificationEnabled(boolean)">setRemoteVerificationEnabled</a></strong>(boolean&nbsp;enable)</code>
<div class="block">Enable or disable verification that the remote host taking part
 of a data connection is the same as the host to which the control
 connection is attached.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setRestartOffset(long)">setRestartOffset</a></strong>(long&nbsp;offset)</code>
<div class="block">Sets the restart offset.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setUseEPSVwithIPv4(boolean)">setUseEPSVwithIPv4</a></strong>(boolean&nbsp;selected)</code>
<div class="block">Set whether to use EPSV with IPv4.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#storeFile(java.lang.String, java.io.InputStream)">storeFile</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote,
         <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;local)</code>
<div class="block">Stores a file on the server using the given name and taking input
 from the given InputStream.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#storeFileStream(java.lang.String)">storeFileStream</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote)</code>
<div class="block">Returns an OutputStream through which data can be written to store
 a file on the server using the given name.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#storeUniqueFile(java.io.InputStream)">storeUniqueFile</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;local)</code>
<div class="block">Stores a file on the server using a unique name assigned by the
 server and taking input from the given InputStream.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#storeUniqueFile(java.lang.String, java.io.InputStream)">storeUniqueFile</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote,
               <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;local)</code>
<div class="block">Stores a file on the server using a unique name derived from the
 given name and taking input
 from the given InputStream.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#storeUniqueFileStream()">storeUniqueFileStream</a></strong>()</code>
<div class="block">Returns an OutputStream through which data can be written to store
 a file on the server using a unique name assigned by the server.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#storeUniqueFileStream(java.lang.String)">storeUniqueFileStream</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote)</code>
<div class="block">Returns an OutputStream through which data can be written to store
 a file on the server using a unique name derived from the given name.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#structureMount(java.lang.String)">structureMount</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Issue the FTP SMNT command.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.commons.net.ftp.FTP">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.commons.net.ftp.<a href="../../../../../org/apache/commons/net/ftp/FTP.html" title="class in org.apache.commons.net.ftp">FTP</a></h3>
<code><a href="../../../../../org/apache/commons/net/ftp/FTP.html#abor()">abor</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#acct(java.lang.String)">acct</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#addProtocolCommandListener(org.apache.commons.net.ProtocolCommandListener)">addProtocolCommandListener</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#allo(int)">allo</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#allo(int, int)">allo</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#appe(java.lang.String)">appe</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#cdup()">cdup</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#cwd(java.lang.String)">cwd</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#dele(java.lang.String)">dele</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#eprt(java.net.InetAddress, int)">eprt</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#epsv()">epsv</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#feat()">feat</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getControlEncoding()">getControlEncoding</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReply()">getReply</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyCode()">getReplyCode</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyString()">getReplyString</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyStrings()">getReplyStrings</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#help()">help</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#help(java.lang.String)">help</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#isStrictMultilineParsing()">isStrictMultilineParsing</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#list()">list</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#list(java.lang.String)">list</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#mdtm(java.lang.String)">mdtm</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#mfmt(java.lang.String, java.lang.String)">mfmt</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#mkd(java.lang.String)">mkd</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#mode(int)">mode</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#nlst()">nlst</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#nlst(java.lang.String)">nlst</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#noop()">noop</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#pass(java.lang.String)">pass</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#pasv()">pasv</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#port(java.net.InetAddress, int)">port</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#pwd()">pwd</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#quit()">quit</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#rein()">rein</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#removeProtocolCommandListener(org.apache.commons.net.ProtocolCommandListener)">removeProtocolCommandListener</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#rest(java.lang.String)">rest</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#retr(java.lang.String)">retr</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#rmd(java.lang.String)">rmd</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#rnfr(java.lang.String)">rnfr</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#rnto(java.lang.String)">rnto</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#sendCommand(int)">sendCommand</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#sendCommand(int, java.lang.String)">sendCommand</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#sendCommand(java.lang.String)">sendCommand</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#sendCommand(java.lang.String, java.lang.String)">sendCommand</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#setControlEncoding(java.lang.String)">setControlEncoding</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#setStrictMultilineParsing(boolean)">setStrictMultilineParsing</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#site(java.lang.String)">site</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#smnt(java.lang.String)">smnt</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#stat()">stat</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#stat(java.lang.String)">stat</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#stor(java.lang.String)">stor</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#stou()">stou</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#stou(java.lang.String)">stou</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#stru(int)">stru</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#syst()">syst</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#type(int)">type</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#type(int, int)">type</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#user(java.lang.String)">user</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.commons.net.SocketClient">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.commons.net.<a href="../../../../../org/apache/commons/net/SocketClient.html" title="class in org.apache.commons.net">SocketClient</a></h3>
<code><a href="../../../../../org/apache/commons/net/SocketClient.html#connect(java.net.InetAddress)">connect</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#connect(java.net.InetAddress, int)">connect</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#connect(java.net.InetAddress, int, java.net.InetAddress, int)">connect</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#connect(java.lang.String)">connect</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#connect(java.lang.String, int)">connect</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#connect(java.lang.String, int, java.net.InetAddress, int)">connect</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getConnectTimeout()">getConnectTimeout</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getDefaultPort()">getDefaultPort</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getDefaultTimeout()">getDefaultTimeout</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getKeepAlive()">getKeepAlive</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getLocalAddress()">getLocalAddress</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getLocalPort()">getLocalPort</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getRemoteAddress()">getRemoteAddress</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getRemotePort()">getRemotePort</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getServerSocketFactory()">getServerSocketFactory</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getSoLinger()">getSoLinger</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getSoTimeout()">getSoTimeout</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getTcpNoDelay()">getTcpNoDelay</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#isConnected()">isConnected</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setConnectTimeout(int)">setConnectTimeout</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setDefaultPort(int)">setDefaultPort</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setDefaultTimeout(int)">setDefaultTimeout</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setKeepAlive(boolean)">setKeepAlive</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setReceiveBufferSize(int)">setReceiveBufferSize</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setSendBufferSize(int)">setSendBufferSize</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setServerSocketFactory(javax.net.ServerSocketFactory)">setServerSocketFactory</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setSocketFactory(javax.net.SocketFactory)">setSocketFactory</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setSoLinger(boolean, int)">setSoLinger</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setSoTimeout(int)">setSoTimeout</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setTcpNoDelay(boolean)">setTcpNoDelay</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#verifyRemote(java.net.Socket)">verifyRemote</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="ACTIVE_LOCAL_DATA_CONNECTION_MODE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ACTIVE_LOCAL_DATA_CONNECTION_MODE</h4>
<pre>public static final&nbsp;int ACTIVE_LOCAL_DATA_CONNECTION_MODE</pre>
<div class="block">A constant indicating the FTP session is expecting all transfers
 to occur between the client (local) and server and that the server
 should connect to the client's data port to initiate a data transfer.
 This is the default data connection mode when and FTPClient instance
 is created.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTPClient.ACTIVE_LOCAL_DATA_CONNECTION_MODE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="ACTIVE_REMOTE_DATA_CONNECTION_MODE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ACTIVE_REMOTE_DATA_CONNECTION_MODE</h4>
<pre>public static final&nbsp;int ACTIVE_REMOTE_DATA_CONNECTION_MODE</pre>
<div class="block">A constant indicating the FTP session is expecting all transfers
 to occur between two remote servers and that the server
 the client is connected to should connect to the other server's
 data port to initiate a data transfer.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTPClient.ACTIVE_REMOTE_DATA_CONNECTION_MODE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="PASSIVE_LOCAL_DATA_CONNECTION_MODE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PASSIVE_LOCAL_DATA_CONNECTION_MODE</h4>
<pre>public static final&nbsp;int PASSIVE_LOCAL_DATA_CONNECTION_MODE</pre>
<div class="block">A constant indicating the FTP session is expecting all transfers
 to occur between the client (local) and server and that the server
 is in passive mode, requiring the client to connect to the
 server's data port to initiate a transfer.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTPClient.PASSIVE_LOCAL_DATA_CONNECTION_MODE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="PASSIVE_REMOTE_DATA_CONNECTION_MODE">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>PASSIVE_REMOTE_DATA_CONNECTION_MODE</h4>
<pre>public static final&nbsp;int PASSIVE_REMOTE_DATA_CONNECTION_MODE</pre>
<div class="block">A constant indicating the FTP session is expecting all transfers
 to occur between two remote servers and that the server
 the client is connected to is in passive mode, requiring the other
 server to connect to the first server's data port to initiate a data
 transfer.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTPClient.PASSIVE_REMOTE_DATA_CONNECTION_MODE">Constant Field Values</a></dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="FTPClient()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>FTPClient</h4>
<pre>public&nbsp;FTPClient()</pre>
<div class="block">Default FTPClient constructor.  Creates a new FTPClient instance
 with the data connection mode set to
 <code> ACTIVE_LOCAL_DATA_CONNECTION_MODE </code>, the file type
 set to <code> FTP.ASCII_FILE_TYPE </code>, the
 file format set to <code> FTP.NON_PRINT_TEXT_FORMAT </code>,
 the file structure set to <code> FTP.FILE_STRUCTURE </code>, and
 the transfer mode set to <code> FTP.STREAM_TRANSFER_MODE </code>.</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="_openDataConnection_(int, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_openDataConnection_</h4>
<pre>protected&nbsp;<a href="file:///usr/share/doc/default-jdk-doc/api/java/net/Socket.html?is-external=true" title="class or interface in java.net">Socket</a>&nbsp;_openDataConnection_(int&nbsp;command,
                          <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;arg)
                               throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Establishes a data connection with the FTP server, returning
 a Socket for the connection if successful.  If a restart
 offset has been set with <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setRestartOffset(long)"><code>setRestartOffset(long)</code></a>,
 a REST command is issued to the server with the offset as
 an argument before establishing the data connection.  Active
 mode connections also cause a local PORT command to be issued.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>command</code> - The text representation of the FTP command to send.</dd><dd><code>arg</code> - The arguments to the FTP command.  If this parameter is
             set to null, then the command is sent with no argument.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A Socket corresponding to the established data connection.
         Null is returned if an FTP protocol error is reported at
         any point during the establishment and initialization of
         the connection.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="_connectAction_()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_connectAction_</h4>
<pre>protected&nbsp;void&nbsp;_connectAction_()
                        throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../../org/apache/commons/net/ftp/FTP.html#_connectAction_()">FTP</a></code></strong></div>
<div class="block">Initiates control connections and gets initial reply.
 Initializes <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_controlInput_"><code>FTP._controlInput_</code></a> and <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_controlOutput_"><code>FTP._controlOutput_</code></a>.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTP.html#_connectAction_()">_connectAction_</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/commons/net/ftp/FTP.html" title="class in org.apache.commons.net.ftp">FTP</a></code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl>
</li>
</ul>
<a name="setDataTimeout(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDataTimeout</h4>
<pre>public&nbsp;void&nbsp;setDataTimeout(int&nbsp;timeout)</pre>
<div class="block">Sets the timeout in milliseconds to use when reading from the
 data connection.  This timeout will be set immediately after
 opening the data connection.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>timeout</code> - The default timeout in milliseconds that is used when
        opening a data connection socket.</dd></dl>
</li>
</ul>
<a name="setParserFactory(org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setParserFactory</h4>
<pre>public&nbsp;void&nbsp;setParserFactory(<a href="../../../../../org/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.html" title="interface in org.apache.commons.net.ftp.parser">FTPFileEntryParserFactory</a>&nbsp;parserFactory)</pre>
<div class="block">set the factory used for parser creation to the supplied factory object.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>parserFactory</code> - factory object used to create FTPFileEntryParsers</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.html" title="interface in org.apache.commons.net.ftp.parser"><code>FTPFileEntryParserFactory</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactory.html" title="class in org.apache.commons.net.ftp.parser"><code>DefaultFTPFileEntryParserFactory</code></a></dd></dl>
</li>
</ul>
<a name="disconnect()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>disconnect</h4>
<pre>public&nbsp;void&nbsp;disconnect()
                throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Closes the connection to the FTP server and restores
 connection parameters to the default values.
 <p></div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTP.html#disconnect()">disconnect</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/commons/net/ftp/FTP.html" title="class in org.apache.commons.net.ftp">FTP</a></code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an error occurs while disconnecting.</dd></dl>
</li>
</ul>
<a name="setRemoteVerificationEnabled(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRemoteVerificationEnabled</h4>
<pre>public&nbsp;void&nbsp;setRemoteVerificationEnabled(boolean&nbsp;enable)</pre>
<div class="block">Enable or disable verification that the remote host taking part
 of a data connection is the same as the host to which the control
 connection is attached.  The default is for verification to be
 enabled.  You may set this value at any time, whether the
 FTPClient is currently connected or not.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>enable</code> - True to enable verification, false to disable verification.</dd></dl>
</li>
</ul>
<a name="isRemoteVerificationEnabled()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isRemoteVerificationEnabled</h4>
<pre>public&nbsp;boolean&nbsp;isRemoteVerificationEnabled()</pre>
<div class="block">Return whether or not verification of the remote host participating
 in data connections is enabled.  The default behavior is for
 verification to be enabled.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>True if verification is enabled, false if not.</dd></dl>
</li>
</ul>
<a name="login(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>login</h4>
<pre>public&nbsp;boolean&nbsp;login(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;username,
            <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;password)
              throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Login to the FTP server using the provided username and password.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>username</code> - The username to login under.</dd><dd><code>password</code> - The password to use.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="login(java.lang.String, java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>login</h4>
<pre>public&nbsp;boolean&nbsp;login(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;username,
            <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;password,
            <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;account)
              throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Login to the FTP server using the provided username, password,
 and account.  If no account is required by the server, only
 the username and password, the account information is not used.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>username</code> - The username to login under.</dd><dd><code>password</code> - The password to use.</dd><dd><code>account</code> - The account to use.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="logout()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logout</h4>
<pre>public&nbsp;boolean&nbsp;logout()
               throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Logout of the FTP server by sending the QUIT command.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="changeWorkingDirectory(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>changeWorkingDirectory</h4>
<pre>public&nbsp;boolean&nbsp;changeWorkingDirectory(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                               throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Change the current working directory of the FTP session.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The new current working directory.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="changeToParentDirectory()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>changeToParentDirectory</h4>
<pre>public&nbsp;boolean&nbsp;changeToParentDirectory()
                                throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Change to the parent directory of the current working directory.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="structureMount(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>structureMount</h4>
<pre>public&nbsp;boolean&nbsp;structureMount(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                       throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Issue the FTP SMNT command.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The pathname to mount.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="enterLocalActiveMode()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>enterLocalActiveMode</h4>
<pre>public&nbsp;void&nbsp;enterLocalActiveMode()</pre>
<div class="block">Set the current data connection mode to
 <code>ACTIVE_LOCAL_DATA_CONNECTION_MODE</code>.  No communication
 with the FTP server is conducted, but this causes all future data
 transfers to require the FTP server to connect to the client's
 data port.  Additionally, to accommodate differences between socket
 implementations on different platforms, this method causes the
 client to issue a PORT command before every data transfer.</div>
</li>
</ul>
<a name="enterLocalPassiveMode()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>enterLocalPassiveMode</h4>
<pre>public&nbsp;void&nbsp;enterLocalPassiveMode()</pre>
<div class="block">Set the current data connection mode to
 <code> PASSIVE_LOCAL_DATA_CONNECTION_MODE </code>.  Use this
 method only for data transfers between the client and server.
 This method causes a PASV (or EPSV) command to be issued to the server
 before the opening of every data connection, telling the server to
 open a data port to which the client will connect to conduct
 data transfers.  The FTPClient will stay in
 <code> PASSIVE_LOCAL_DATA_CONNECTION_MODE </code> until the
 mode is changed by calling some other method such as
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterLocalActiveMode()"><code>enterLocalActiveMode() </code></a>
 <p>
 <b>N.B.</b> currently calling any connect method will reset the mode to 
 ACTIVE_LOCAL_DATA_CONNECTION_MODE.</div>
</li>
</ul>
<a name="enterRemoteActiveMode(java.net.InetAddress, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>enterRemoteActiveMode</h4>
<pre>public&nbsp;boolean&nbsp;enterRemoteActiveMode(<a href="file:///usr/share/doc/default-jdk-doc/api/java/net/InetAddress.html?is-external=true" title="class or interface in java.net">InetAddress</a>&nbsp;host,
                            int&nbsp;port)
                              throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Set the current data connection mode to
 <code> ACTIVE_REMOTE_DATA_CONNECTION </code>.  Use this method only
 for server to server data transfers.  This method issues a PORT
 command to the server, indicating the other server and port to which
 it should connect for data transfers.  You must call this method
 before EVERY server to server transfer attempt.  The FTPClient will
 NOT automatically continue to issue PORT commands.  You also
 must remember to call
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterLocalActiveMode()"><code>enterLocalActiveMode() </code></a> if you
 wish to return to the normal data connection mode.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>host</code> - The passive mode server accepting connections for data
             transfers.</dd><dd><code>port</code> - The passive mode server's data port.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="enterRemotePassiveMode()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>enterRemotePassiveMode</h4>
<pre>public&nbsp;boolean&nbsp;enterRemotePassiveMode()
                               throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Set the current data connection mode to
 <code> PASSIVE_REMOTE_DATA_CONNECTION_MODE </code>.  Use this
 method only for server to server data transfers.
 This method issues a PASV command to the server, telling it to
 open a data port to which the active server will connect to conduct
 data transfers.  You must call this method
 before EVERY server to server transfer attempt.  The FTPClient will
 NOT automatically continue to issue PASV commands.  You also
 must remember to call
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterLocalActiveMode()"><code>enterLocalActiveMode() </code></a> if you
 wish to return to the normal data connection mode.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="getPassiveHost()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPassiveHost</h4>
<pre>public&nbsp;<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getPassiveHost()</pre>
<div class="block">Returns the hostname or IP address (in the form of a string) returned
 by the server when entering passive mode.  If not in passive mode,
 returns null.  This method only returns a valid value AFTER a
 data connection has been opened after a call to
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterLocalPassiveMode()"><code>enterLocalPassiveMode()</code></a>.
 This is because FTPClient sends a PASV command to the server only
 just before opening a data connection, and not when you call
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterLocalPassiveMode()"><code>enterLocalPassiveMode()</code></a>.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The passive host name if in passive mode, otherwise null.</dd></dl>
</li>
</ul>
<a name="getPassivePort()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPassivePort</h4>
<pre>public&nbsp;int&nbsp;getPassivePort()</pre>
<div class="block">If in passive mode, returns the data port of the passive host.
 This method only returns a valid value AFTER a
 data connection has been opened after a call to
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterLocalPassiveMode()"><code>enterLocalPassiveMode()</code></a>.
 This is because FTPClient sends a PASV command to the server only
 just before opening a data connection, and not when you call
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterLocalPassiveMode()"><code>enterLocalPassiveMode()</code></a>.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The data port of the passive server.  If not in passive
         mode, undefined.</dd></dl>
</li>
</ul>
<a name="getDataConnectionMode()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDataConnectionMode</h4>
<pre>public&nbsp;int&nbsp;getDataConnectionMode()</pre>
<div class="block">Returns the current data connection mode (one of the
 <code> _DATA_CONNECTION_MODE </code> constants.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The current data connection mode (one of the
 <code> _DATA_CONNECTION_MODE </code> constants.</dd></dl>
</li>
</ul>
<a name="setActivePortRange(int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setActivePortRange</h4>
<pre>public&nbsp;void&nbsp;setActivePortRange(int&nbsp;minPort,
                      int&nbsp;maxPort)</pre>
<div class="block">Set the client side port range in active mode.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>minPort</code> - The lowest available port (inclusive).</dd><dd><code>maxPort</code> - The highest available port (inclusive).</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.2</dd></dl>
</li>
</ul>
<a name="setActiveExternalIPAddress(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setActiveExternalIPAddress</h4>
<pre>public&nbsp;void&nbsp;setActiveExternalIPAddress(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;ipAddress)
                                throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</a></pre>
<div class="block">Set the external IP address in active mode.
 Useful when there are multiple network cards.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>ipAddress</code> - The external IP address of this machine.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>2.2</dd></dl>
</li>
</ul>
<a name="setFileType(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFileType</h4>
<pre>public&nbsp;boolean&nbsp;setFileType(int&nbsp;fileType)
                    throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Sets the file type to be transferred.  This should be one of
 <code> FTP.ASCII_FILE_TYPE </code>, <code> FTP.BINARY_FILE_TYPE</code>,
 etc.  The file type only needs to be set when you want to change the
 type.  After changing it, the new type stays in effect until you change
 it again.  The default file type is <code> FTP.ASCII_FILE_TYPE </code>
 if this method is never called.
 <p>
 <b>N.B.</b> currently calling any connect method will reset the mode to 
 ACTIVE_LOCAL_DATA_CONNECTION_MODE.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fileType</code> - The <code> _FILE_TYPE </code> constant indcating the
                 type of file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="setFileType(int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFileType</h4>
<pre>public&nbsp;boolean&nbsp;setFileType(int&nbsp;fileType,
                  int&nbsp;formatOrByteSize)
                    throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Sets the file type to be transferred and the format.  The type should be
 one of  <code> FTP.ASCII_FILE_TYPE </code>,
 <code> FTP.BINARY_FILE_TYPE </code>, etc.  The file type only needs to
 be set when you want to change the type.  After changing it, the new
 type stays in effect until you change it again.  The default file type
 is <code> FTP.ASCII_FILE_TYPE </code> if this method is never called.
 The format should be one of the FTP class <code> TEXT_FORMAT </code>
 constants, or if the type is <code> FTP.LOCAL_FILE_TYPE </code>, the
 format should be the byte size for that type.  The default format
 is <code> FTP.NON_PRINT_TEXT_FORMAT </code> if this method is never
 called.
 <p>
 <b>N.B.</b> currently calling any connect method will reset the mode to 
 ACTIVE_LOCAL_DATA_CONNECTION_MODE.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fileType</code> - The <code> _FILE_TYPE </code> constant indcating the
                 type of file.</dd><dd><code>formatOrByteSize</code> - The format of the file (one of the
              <code>_FORMAT</code> constants.  In the case of
              <code>LOCAL_FILE_TYPE</code>, the byte size.
 <p></dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="setFileStructure(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFileStructure</h4>
<pre>public&nbsp;boolean&nbsp;setFileStructure(int&nbsp;structure)
                         throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Sets the file structure.  The default structure is
 <code> FTP.FILE_STRUCTURE </code> if this method is never called.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>structure</code> - The structure of the file (one of the FTP class
         <code>_STRUCTURE</code> constants).</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="setFileTransferMode(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFileTransferMode</h4>
<pre>public&nbsp;boolean&nbsp;setFileTransferMode(int&nbsp;mode)
                            throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Sets the transfer mode.  The default transfer mode
 <code> FTP.STREAM_TRANSFER_MODE </code> if this method is never called.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>mode</code> - The new transfer mode to use (one of the FTP class
         <code>_TRANSFER_MODE</code> constants).</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="remoteRetrieve(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>remoteRetrieve</h4>
<pre>public&nbsp;boolean&nbsp;remoteRetrieve(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filename)
                       throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Initiate a server to server file transfer.  This method tells the
 server to which the client is connected to retrieve a given file from
 the other server.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>filename</code> - The name of the file to retrieve.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="remoteStore(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>remoteStore</h4>
<pre>public&nbsp;boolean&nbsp;remoteStore(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filename)
                    throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Initiate a server to server file transfer.  This method tells the
 server to which the client is connected to store a file on
 the other server using the given filename.  The other server must
 have had a <code> remoteRetrieve </code> issued to it by another
 FTPClient.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>filename</code> - The name to call the file that is to be stored.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="remoteStoreUnique(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>remoteStoreUnique</h4>
<pre>public&nbsp;boolean&nbsp;remoteStoreUnique(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filename)
                          throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Initiate a server to server file transfer.  This method tells the
 server to which the client is connected to store a file on
 the other server using a unique filename based on the given filename.
 The other server must have had a <code> remoteRetrieve </code> issued
 to it by another FTPClient.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>filename</code> - The name on which to base the filename of the file
                  that is to be stored.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="remoteStoreUnique()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>remoteStoreUnique</h4>
<pre>public&nbsp;boolean&nbsp;remoteStoreUnique()
                          throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Initiate a server to server file transfer.  This method tells the
 server to which the client is connected to store a file on
 the other server using a unique filename.
 The other server must have had a <code> remoteRetrieve </code> issued
 to it by another FTPClient.  Many FTP servers require that a base
 filename be given from which the unique filename can be derived.  For
 those servers use the other version of <code> remoteStoreUnique</code>
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="remoteAppend(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>remoteAppend</h4>
<pre>public&nbsp;boolean&nbsp;remoteAppend(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filename)
                     throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Initiate a server to server file transfer.  This method tells the
 server to which the client is connected to append to a given file on
 the other server.  The other server must have had a
 <code> remoteRetrieve </code> issued to it by another FTPClient.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>filename</code> - The name of the file to be appended to, or if the
        file does not exist, the name to call the file being stored.
 <p></dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="completePendingCommand()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>completePendingCommand</h4>
<pre>public&nbsp;boolean&nbsp;completePendingCommand()
                               throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">There are a few FTPClient methods that do not complete the
 entire sequence of FTP commands to complete a transaction.  These
 commands require some action by the programmer after the reception
 of a positive intermediate command.  After the programmer's code
 completes its actions, it must call this method to receive
 the completion reply from the server and verify the success of the
 entire transaction.
 <p>
 For example,
 <pre>
 InputStream input;
 OutputStream output;
 input  = new FileInputStream("foobaz.txt");
 output = ftp.storeFileStream("foobar.txt")
 if(!FTPReply.isPositiveIntermediate(ftp.getReplyCode())) {
     input.close();
     output.close();
     ftp.logout();
     ftp.disconnect();
     System.err.println("File transfer failed.");
     System.exit(1);
 }
 Util.copyStream(input, output);
 input.close();
 output.close();
 // Must call completePendingCommand() to finish command.
 if(!ftp.completePendingCommand()) {
     ftp.logout();
     ftp.disconnect();
     System.err.println("File transfer failed.");
     System.exit(1);
 }
 </pre>
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="retrieveFile(java.lang.String, java.io.OutputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>retrieveFile</h4>
<pre>public&nbsp;boolean&nbsp;retrieveFile(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote,
                   <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;local)
                     throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Retrieves a named file from the server and writes it to the given
 OutputStream.  This method does NOT close the given OutputStream.
 If the current file type is ASCII, line separators in the file are
 converted to the local representation.
 <p>
 Note: if you have used <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setRestartOffset(long)"><code>setRestartOffset(long)</code></a>, 
 the file data will start from the selected offset.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>remote</code> - The name of the remote file.</dd><dd><code>local</code> - The local OutputStream to which to write the file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/io/CopyStreamException.html" title="class in org.apache.commons.net.io">CopyStreamException</a></code> - If an I/O error occurs while actually
      transferring the file.  The CopyStreamException allows you to
      determine the number of bytes transferred and the IOException
      causing the error.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="retrieveFileStream(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>retrieveFileStream</h4>
<pre>public&nbsp;<a href="file:///usr/share/doc/default-jdk-doc/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;retrieveFileStream(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote)
                               throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns an InputStream from which a named file from the server
 can be read.  If the current file type is ASCII, the returned
 InputStream will convert line separators in the file to
 the local representation.  You must close the InputStream when you
 finish reading from it.  The InputStream itself will take care of
 closing the parent data connection socket upon being closed.  To
 finalize the file transfer you must call
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#completePendingCommand()"><code>completePendingCommand </code></a> and
 check its return value to verify success.
 <p>
 Note: if you have used <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setRestartOffset(long)"><code>setRestartOffset(long)</code></a>, 
 the file data will start from the selected offset.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>remote</code> - The name of the remote file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>An InputStream from which the remote file can be read.  If
      the data connection cannot be opened (e.g., the file does not
      exist), null is returned (in which case you may check the reply
      code to determine the exact reason for failure).</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="storeFile(java.lang.String, java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>storeFile</h4>
<pre>public&nbsp;boolean&nbsp;storeFile(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote,
                <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;local)
                  throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Stores a file on the server using the given name and taking input
 from the given InputStream.  This method does NOT close the given
 InputStream.  If the current file type is ASCII, line separators in
 the file are transparently converted to the NETASCII format (i.e.,
 you should not attempt to create a special InputStream to do this).
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>remote</code> - The name to give the remote file.</dd><dd><code>local</code> - The local InputStream from which to read the file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/io/CopyStreamException.html" title="class in org.apache.commons.net.io">CopyStreamException</a></code> - If an I/O error occurs while actually
      transferring the file.  The CopyStreamException allows you to
      determine the number of bytes transferred and the IOException
      causing the error.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="storeFileStream(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>storeFileStream</h4>
<pre>public&nbsp;<a href="file:///usr/share/doc/default-jdk-doc/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;storeFileStream(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote)
                             throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns an OutputStream through which data can be written to store
 a file on the server using the given name.  If the current file type
 is ASCII, the returned OutputStream will convert line separators in
 the file to the NETASCII format  (i.e., you should not attempt to
 create a special OutputStream to do this).  You must close the
 OutputStream when you finish writing to it.  The OutputStream itself
 will take care of closing the parent data connection socket upon being
 closed.  To finalize the file transfer you must call
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#completePendingCommand()"><code>completePendingCommand </code></a> and
 check its return value to verify success.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>remote</code> - The name to give the remote file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>An OutputStream through which the remote file can be written.  If
      the data connection cannot be opened (e.g., the file does not
      exist), null is returned (in which case you may check the reply
      code to determine the exact reason for failure).</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="appendFile(java.lang.String, java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>appendFile</h4>
<pre>public&nbsp;boolean&nbsp;appendFile(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote,
                 <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;local)
                   throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Appends to a file on the server with the given name, taking input
 from the given InputStream.  This method does NOT close the given
 InputStream.  If the current file type is ASCII, line separators in
 the file are transparently converted to the NETASCII format (i.e.,
 you should not attempt to create a special InputStream to do this).
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>remote</code> - The name of the remote file.</dd><dd><code>local</code> - The local InputStream from which to read the data to
                be appended to the remote file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/io/CopyStreamException.html" title="class in org.apache.commons.net.io">CopyStreamException</a></code> - If an I/O error occurs while actually
      transferring the file.  The CopyStreamException allows you to
      determine the number of bytes transferred and the IOException
      causing the error.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="appendFileStream(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>appendFileStream</h4>
<pre>public&nbsp;<a href="file:///usr/share/doc/default-jdk-doc/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;appendFileStream(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote)
                              throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns an OutputStream through which data can be written to append
 to a file on the server with the given name.  If the current file type
 is ASCII, the returned OutputStream will convert line separators in
 the file to the NETASCII format  (i.e., you should not attempt to
 create a special OutputStream to do this).  You must close the
 OutputStream when you finish writing to it.  The OutputStream itself
 will take care of closing the parent data connection socket upon being
 closed.  To finalize the file transfer you must call
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#completePendingCommand()"><code>completePendingCommand </code></a> and
 check its return value to verify success.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>remote</code> - The name of the remote file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>An OutputStream through which the remote file can be appended.
      If the data connection cannot be opened (e.g., the file does not
      exist), null is returned (in which case you may check the reply
      code to determine the exact reason for failure).</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="storeUniqueFile(java.lang.String, java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>storeUniqueFile</h4>
<pre>public&nbsp;boolean&nbsp;storeUniqueFile(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote,
                      <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;local)
                        throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Stores a file on the server using a unique name derived from the
 given name and taking input
 from the given InputStream.  This method does NOT close the given
 InputStream.  If the current file type is ASCII, line separators in
 the file are transparently converted to the NETASCII format (i.e.,
 you should not attempt to create a special InputStream to do this).
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>remote</code> - The name on which to base the unique name given to
                the remote file.</dd><dd><code>local</code> - The local InputStream from which to read the file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/io/CopyStreamException.html" title="class in org.apache.commons.net.io">CopyStreamException</a></code> - If an I/O error occurs while actually
      transferring the file.  The CopyStreamException allows you to
      determine the number of bytes transferred and the IOException
      causing the error.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="storeUniqueFileStream(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>storeUniqueFileStream</h4>
<pre>public&nbsp;<a href="file:///usr/share/doc/default-jdk-doc/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;storeUniqueFileStream(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote)
                                   throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns an OutputStream through which data can be written to store
 a file on the server using a unique name derived from the given name.
 If the current file type
 is ASCII, the returned OutputStream will convert line separators in
 the file to the NETASCII format  (i.e., you should not attempt to
 create a special OutputStream to do this).  You must close the
 OutputStream when you finish writing to it.  The OutputStream itself
 will take care of closing the parent data connection socket upon being
 closed.  To finalize the file transfer you must call
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#completePendingCommand()"><code>completePendingCommand </code></a> and
 check its return value to verify success.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>remote</code> - The name on which to base the unique name given to
                the remote file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>An OutputStream through which the remote file can be written.  If
      the data connection cannot be opened (e.g., the file does not
      exist), null is returned (in which case you may check the reply
      code to determine the exact reason for failure).</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="storeUniqueFile(java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>storeUniqueFile</h4>
<pre>public&nbsp;boolean&nbsp;storeUniqueFile(<a href="file:///usr/share/doc/default-jdk-doc/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;local)
                        throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Stores a file on the server using a unique name assigned by the
 server and taking input from the given InputStream.  This method does
 NOT close the given
 InputStream.  If the current file type is ASCII, line separators in
 the file are transparently converted to the NETASCII format (i.e.,
 you should not attempt to create a special InputStream to do this).
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>local</code> - The local InputStream from which to read the file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/io/CopyStreamException.html" title="class in org.apache.commons.net.io">CopyStreamException</a></code> - If an I/O error occurs while actually
      transferring the file.  The CopyStreamException allows you to
      determine the number of bytes transferred and the IOException
      causing the error.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="storeUniqueFileStream()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>storeUniqueFileStream</h4>
<pre>public&nbsp;<a href="file:///usr/share/doc/default-jdk-doc/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;storeUniqueFileStream()
                                   throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns an OutputStream through which data can be written to store
 a file on the server using a unique name assigned by the server.
 If the current file type
 is ASCII, the returned OutputStream will convert line separators in
 the file to the NETASCII format  (i.e., you should not attempt to
 create a special OutputStream to do this).  You must close the
 OutputStream when you finish writing to it.  The OutputStream itself
 will take care of closing the parent data connection socket upon being
 closed.  To finalize the file transfer you must call
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#completePendingCommand()"><code>completePendingCommand </code></a> and
 check its return value to verify success.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>An OutputStream through which the remote file can be written.  If
      the data connection cannot be opened (e.g., the file does not
      exist), null is returned (in which case you may check the reply
      code to determine the exact reason for failure).</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="allocate(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allocate</h4>
<pre>public&nbsp;boolean&nbsp;allocate(int&nbsp;bytes)
                 throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Reserve a number of bytes on the server for the next file transfer.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>bytes</code> - The number of bytes which the server should allocate.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="features()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>features</h4>
<pre>public&nbsp;boolean&nbsp;features()
                 throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Query the server for supported features. The server may reply with a list of server-supported exensions.
 For example, a typical client-server interaction might be (from RFC     2289):
 <pre>
        C> feat
        S> 211-Extensions supported:
        S>  MLST size*;create;modify*;perm;media-type
        S>  SIZE
        S>  COMPRESSION
        S>  MDTM
        S> 211 END
 </pre></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>2.2</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="http://www.faqs.org/rfcs/rfc2389.html">http://www.faqs.org/rfcs/rfc2389.html</a></dd></dl>
</li>
</ul>
<a name="allocate(int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allocate</h4>
<pre>public&nbsp;boolean&nbsp;allocate(int&nbsp;bytes,
               int&nbsp;recordSize)
                 throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Reserve space on the server for the next file transfer.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>bytes</code> - The number of bytes which the server should allocate.</dd><dd><code>recordSize</code> - The size of a file record.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="setRestartOffset(long)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRestartOffset</h4>
<pre>public&nbsp;void&nbsp;setRestartOffset(long&nbsp;offset)</pre>
<div class="block">Sets the restart offset.  The restart command is sent to the server
 only before sending the file transfer command.  When this is done,
 the restart marker is reset to zero.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>offset</code> - The offset into the remote file at which to start the
           next file transfer.  This must be a value greater than or
           equal to zero.</dd></dl>
</li>
</ul>
<a name="getRestartOffset()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRestartOffset</h4>
<pre>public&nbsp;long&nbsp;getRestartOffset()</pre>
<div class="block">Fetches the restart offset.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>offset  The offset into the remote file at which to start the
           next file transfer.</dd></dl>
</li>
</ul>
<a name="rename(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rename</h4>
<pre>public&nbsp;boolean&nbsp;rename(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;from,
             <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;to)
               throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Renames a remote file.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>from</code> - The name of the remote file to rename.</dd><dd><code>to</code> - The new name of the remote file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="abort()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>abort</h4>
<pre>public&nbsp;boolean&nbsp;abort()
              throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Abort a transfer in progress.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="deleteFile(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>deleteFile</h4>
<pre>public&nbsp;boolean&nbsp;deleteFile(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                   throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Deletes a file on the FTP server.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The pathname of the file to be deleted.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="removeDirectory(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeDirectory</h4>
<pre>public&nbsp;boolean&nbsp;removeDirectory(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                        throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Removes a directory on the FTP server (if empty).
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The pathname of the directory to remove.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="makeDirectory(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeDirectory</h4>
<pre>public&nbsp;boolean&nbsp;makeDirectory(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                      throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Creates a new subdirectory on the FTP server in the current directory
 (if a relative pathname is given) or where specified (if an absolute
 pathname is given).
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The pathname of the directory to create.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="printWorkingDirectory()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>printWorkingDirectory</h4>
<pre>public&nbsp;<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;printWorkingDirectory()
                             throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns the pathname of the current working directory.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The pathname of the current working directory.  If it cannot
         be obtained, returns null.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="sendSiteCommand(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sendSiteCommand</h4>
<pre>public&nbsp;boolean&nbsp;sendSiteCommand(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;arguments)
                        throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Send a site specific command.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>arguments</code> - The site specific command and arguments.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="getSystemName()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSystemName</h4>
<pre><a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public&nbsp;<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getSystemName()
                     throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>Use <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getSystemType()"><code>getSystemType()</code></a> - which does not return null.
  Will be deleted in version 3.0</i></div>
<div class="block">Fetches the system type name from the server and returns the string.
 This value is cached for the duration of the connection after the
 first call to this method.  In other words, only the first time
 that you invoke this method will it issue a SYST command to the
 FTP server.  FTPClient will remember the value and return the
 cached value until a call to disconnect.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The system type name obtained from the server.  null if the
       information could not be obtained.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
  command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="getSystemType()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSystemType</h4>
<pre>public&nbsp;<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getSystemType()
                     throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Fetches the system type from the server and returns the string.
 This value is cached for the duration of the connection after the
 first call to this method.  In other words, only the first time
 that you invoke this method will it issue a SYST command to the
 FTP server.  FTPClient will remember the value and return the
 cached value until a call to disconnect.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The system type obtained from the server. Never null.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
  command to the server or receiving a reply from the server.</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.2</dd></dl>
</li>
</ul>
<a name="listHelp()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listHelp</h4>
<pre>public&nbsp;<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;listHelp()
                throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Fetches the system help information from the server and returns the
 full string.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The system help string obtained from the server.  null if the
       information could not be obtained.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
  command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="listHelp(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listHelp</h4>
<pre>public&nbsp;<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;listHelp(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command)
                throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Fetches the help information for a given command from the server and
 returns the full string.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>command</code> - The command on which to ask for help.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The command help string obtained from the server.  null if the
       information could not be obtained.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
  command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="sendNoOp()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sendNoOp</h4>
<pre>public&nbsp;boolean&nbsp;sendNoOp()
                 throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Sends a NOOP command to the FTP server.  This is useful for preventing
 server timeouts.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="listNames(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listNames</h4>
<pre>public&nbsp;<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;listNames(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                   throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Obtain a list of filenames in a directory (or just the name of a given
 file, which is not particularly useful).  This information is obtained
 through the NLST command.  If the given pathname is a directory and
 contains no files,  a zero length array is returned only
 if the FTP server returned a positive completion code, otherwise
 null is returned (the FTP server returned a 550 error No files found.).
 If the directory is not empty, an array of filenames in the directory is
 returned. If the pathname corresponds
 to a file, only that file will be listed.  The server may or may not
 expand glob expressions.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The file or directory to list.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The list of filenames contained in the given path.  null if
     the list could not be obtained.  If there are no filenames in
     the directory, a zero-length array is returned.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="listNames()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listNames</h4>
<pre>public&nbsp;<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;listNames()
                   throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Obtain a list of filenames in the current working directory
 This information is obtained through the NLST command.  If the current
 directory contains no files, a zero length array is returned only
 if the FTP server returned a positive completion code, otherwise,
 null is returned (the FTP server returned a 550 error No files found.).
 If the directory is not empty, an array of filenames in the directory is
 returned.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The list of filenames contained in the current working
     directory.  null if the list could not be obtained.
     If there are no filenames in the directory, a zero-length array
     is returned.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="listFiles(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listFiles</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]&nbsp;listFiles(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                    throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Using the default system autodetect mechanism, obtain a
 list of file information for the current working directory
 or for just a single file.
 <p>
 This information is obtained through the LIST command.  The contents of
 the returned array is determined by the<code> FTPFileEntryParser </code>
 used.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The file or directory to list.  Since the server may
                  or may not expand glob expressions, using them here
                  is not recommended and may well cause this method to
                  fail.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The list of file information contained in the given path in
         the format determined by the autodetection mechanism</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection
                   as a result of the client being idle or some other
                   reason causing the server to send FTP reply code 421.
                   This exception may be caught either as an IOException
                   or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
                   command to the server or receiving a reply
                   from the server.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/parser/ParserInitializationException.html" title="class in org.apache.commons.net.ftp.parser">ParserInitializationException</a></code> - Thrown if the parserKey parameter cannot be
                   resolved by the selected parser factory.
                   In the DefaultFTPEntryParserFactory, this will
                   happen when parserKey is neither
                   the fully qualified class name of a class
                   implementing the interface
                   org.apache.commons.net.ftp.FTPFileEntryParser
                   nor a string containing one of the recognized keys
                   mapping to such a parser or if class loader
                   security issues prevent its being loaded.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactory.html" title="class in org.apache.commons.net.ftp.parser"><code>DefaultFTPFileEntryParserFactory</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.html" title="interface in org.apache.commons.net.ftp.parser"><code>FTPFileEntryParserFactory</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/FTPFileEntryParser.html" title="interface in org.apache.commons.net.ftp"><code>FTPFileEntryParser</code></a></dd></dl>
</li>
</ul>
<a name="listFiles()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listFiles</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]&nbsp;listFiles()
                    throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Using the default system autodetect mechanism, obtain a
 list of file information for the current working directory.
 <p>
 This information is obtained through the LIST command.  The contents of
 the returned array is determined by the<code> FTPFileEntryParser </code>
 used.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The list of file information contained in the current directory
         in the format determined by the autodetection mechanism.
         <p><b>
         NOTE:</b> This array may contain null members if any of the
         individual file listings failed to parse.  The caller should
         check each entry for null before referencing it.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection
                   as a result of the client being idle or some other
                   reason causing the server to send FTP reply code 421.
                   This exception may be caught either as an IOException
                   or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
                   command to the server or receiving a reply
                   from the server.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/parser/ParserInitializationException.html" title="class in org.apache.commons.net.ftp.parser">ParserInitializationException</a></code> - Thrown if the parserKey parameter cannot be
                   resolved by the selected parser factory.
                   In the DefaultFTPEntryParserFactory, this will
                   happen when parserKey is neither
                   the fully qualified class name of a class
                   implementing the interface
                   org.apache.commons.net.ftp.FTPFileEntryParser
                   nor a string containing one of the recognized keys
                   mapping to such a parser or if class loader
                   security issues prevent its being loaded.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactory.html" title="class in org.apache.commons.net.ftp.parser"><code>DefaultFTPFileEntryParserFactory</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.html" title="interface in org.apache.commons.net.ftp.parser"><code>FTPFileEntryParserFactory</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/FTPFileEntryParser.html" title="interface in org.apache.commons.net.ftp"><code>FTPFileEntryParser</code></a></dd></dl>
</li>
</ul>
<a name="listFiles(java.lang.String, org.apache.commons.net.ftp.FTPFileFilter)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listFiles</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]&nbsp;listFiles(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname,
                  <a href="../../../../../org/apache/commons/net/ftp/FTPFileFilter.html" title="interface in org.apache.commons.net.ftp">FTPFileFilter</a>&nbsp;filter)
                    throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Version of <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listFiles(java.lang.String)"><code>listFiles(String)</code></a> which allows a filter to be provided.
 For example: <code>listFiles("site", FTPFileFilters.DIRECTORY);</code></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - the initial path, may be null</dd><dd><code>filter</code> - the filter, non-null</dd>
<dt><span class="strong">Returns:</span></dt><dd>the list of FTPFile entries.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>2.2</dd></dl>
</li>
</ul>
<a name="initiateListParsing()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>initiateListParsing</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/net/ftp/FTPListParseEngine.html" title="class in org.apache.commons.net.ftp">FTPListParseEngine</a>&nbsp;initiateListParsing()
                                       throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Using the default autodetect mechanism, initialize an FTPListParseEngine
 object containing a raw file information for the current working
 directory on the server
 This information is obtained through the LIST command.  This object
 is then capable of being iterated to return a sequence of FTPFile
 objects with information filled in by the
 <code> FTPFileEntryParser </code> used.
 <p>
 This method differs from using the listFiles() methods in that
 expensive FTPFile objects are not created until needed which may be
 an advantage on large lists.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>A FTPListParseEngine object that holds the raw information and
 is capable of providing parsed FTPFile objects, one for each file
 containing information contained in the given path in the format
 determined by the <code> parser </code> parameter.   Null will be
 returned if a data connection cannot be opened.  If the current working
 directory contains no files, an empty array will be the return.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
                   of the client being idle or some other reason causing the server
                   to send FTP reply code 421.  This exception may be caught either
                   as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
                   command to the server or receiving a reply from the server.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/parser/ParserInitializationException.html" title="class in org.apache.commons.net.ftp.parser">ParserInitializationException</a></code> - Thrown if the autodetect mechanism cannot
                   resolve the type of system we are connected with.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/FTPListParseEngine.html" title="class in org.apache.commons.net.ftp"><code>FTPListParseEngine</code></a></dd></dl>
</li>
</ul>
<a name="initiateListParsing(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>initiateListParsing</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/net/ftp/FTPListParseEngine.html" title="class in org.apache.commons.net.ftp">FTPListParseEngine</a>&nbsp;initiateListParsing(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                                       throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Using the default autodetect mechanism, initialize an FTPListParseEngine
 object containing a raw file information for the supplied directory.
 This information is obtained through the LIST command.  This object
 is then capable of being iterated to return a sequence of FTPFile
 objects with information filled in by the
 <code> FTPFileEntryParser </code> used.
 <p>
 The server may or may not expand glob expressions.  You should avoid
 using glob expressions because the return format for glob listings
 differs from server to server and will likely cause this method to fail.
 <p>
 This method differs from using the listFiles() methods in that
 expensive FTPFile objects are not created until needed which may be
 an advantage on large lists.
 <p>
 <pre>
    FTPClient f=FTPClient();
    f.connect(server);
    f.login(username, password);
    FTPListParseEngine engine = f.initiateListParsing(directory);

    while (engine.hasNext()) {
       FTPFile[] files = engine.getNext(25);  // "page size" you want
       //do whatever you want with these files, display them, etc.
       //expensive FTPFile objects not created until needed.
    }
 </pre></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>A FTPListParseEngine object that holds the raw information and
 is capable of providing parsed FTPFile objects, one for each file
 containing information contained in the given path in the format
 determined by the <code> parser </code> parameter.   Null will be
 returned if a data connection cannot be opened.  If the current working
 directory contains no files, an empty array will be the return.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
                   of the client being idle or some other reason causing the server
                   to send FTP reply code 421.  This exception may be caught either
                   as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
                   command to the server or receiving a reply from the server.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/parser/ParserInitializationException.html" title="class in org.apache.commons.net.ftp.parser">ParserInitializationException</a></code> - Thrown if the autodetect mechanism cannot
                   resolve the type of system we are connected with.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/FTPListParseEngine.html" title="class in org.apache.commons.net.ftp"><code>FTPListParseEngine</code></a></dd></dl>
</li>
</ul>
<a name="initiateListParsing(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>initiateListParsing</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/net/ftp/FTPListParseEngine.html" title="class in org.apache.commons.net.ftp">FTPListParseEngine</a>&nbsp;initiateListParsing(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;parserKey,
                                     <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                                       throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Using the supplied parser key, initialize an FTPListParseEngine
 object containing a raw file information for the supplied directory.
 This information is obtained through the LIST command.  This object
 is then capable of being iterated to return a sequence of FTPFile
 objects with information filled in by the
 <code> FTPFileEntryParser </code> used.
 <p>
 The server may or may not expand glob expressions.  You should avoid
 using glob expressions because the return format for glob listings
 differs from server to server and will likely cause this method to fail.
 <p>
 This method differs from using the listFiles() methods in that
 expensive FTPFile objects are not created until needed which may be
 an advantage on large lists.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>parserKey</code> - A string representing a designated code or fully-qualified
 class name of an  <code> FTPFileEntryParser </code> that should be
               used to parse each server file listing.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A FTPListParseEngine object that holds the raw information and
 is capable of providing parsed FTPFile objects, one for each file
 containing information contained in the given path in the format
 determined by the <code> parser </code> parameter.   Null will be
 returned if a data connection cannot be opened.  If the current working
 directory contains no files, an empty array will be the return.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
                   of the client being idle or some other reason causing the server
                   to send FTP reply code 421.  This exception may be caught either
                   as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
                   command to the server or receiving a reply from the server.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/parser/ParserInitializationException.html" title="class in org.apache.commons.net.ftp.parser">ParserInitializationException</a></code> - Thrown if the parserKey parameter cannot be
                   resolved by the selected parser factory.
                   In the DefaultFTPEntryParserFactory, this will
                   happen when parserKey is neither
                   the fully qualified class name of a class
                   implementing the interface
                   org.apache.commons.net.ftp.FTPFileEntryParser
                   nor a string containing one of the recognized keys
                   mapping to such a parser or if class loader
                   security issues prevent its being loaded.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/FTPListParseEngine.html" title="class in org.apache.commons.net.ftp"><code>FTPListParseEngine</code></a></dd></dl>
</li>
</ul>
<a name="getListArguments(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getListArguments</h4>
<pre>protected&nbsp;<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getListArguments(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</pre>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>2.0</dd></dl>
</li>
</ul>
<a name="getStatus()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStatus</h4>
<pre>public&nbsp;<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getStatus()
                 throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Issue the FTP STAT command to the server.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The status information returned by the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="getStatus(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStatus</h4>
<pre>public&nbsp;<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getStatus(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                 throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Issue the FTP STAT command to the server for a given pathname.  This
 should produce a listing of the file or directory.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The status information returned by the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="getModificationTime(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getModificationTime</h4>
<pre>public&nbsp;<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getModificationTime(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                           throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Issue the FTP MDTM command (not supported by all servers to retrieve the last
 modification time of a file. The modification string should be in the
 ISO 3077 form "YYYYMMDDhhmmss(.xxx)?". The timestamp represented should also be in
 GMT, but not all FTP servers honour this.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The file path to query.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A string representing the last file modification time in <code>YYYYMMDDhhmmss</code> format.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if an I/O error occurs.</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.0</dd></dl>
</li>
</ul>
<a name="setModificationTime(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setModificationTime</h4>
<pre>public&nbsp;boolean&nbsp;setModificationTime(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname,
                          <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;timeval)
                            throws <a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Issue the FTP MFMT command (not supported by all servers) which sets the last
 modified time of a file.

 The timestamp should be in the form <code>YYYYMMDDhhmmss</code>. It should also
 be in GMT, but not all servers honour this.

 An FTP server would indicate its support of this feature by including "MFMT"
 in its response to the FEAT command, which may be retrieved by FTPClient.features()</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The file path for which last modified time is to be changed.</dd><dd><code>timeval</code> - The timestamp to set to, in <code>YYYYMMDDhhmmss</code> format.</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if successfully set, false if not</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if an I/O error occurs.</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.2</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="http://tools.ietf.org/html/draft-somers-ftp-mfxx-04">http://tools.ietf.org/html/draft-somers-ftp-mfxx-04</a></dd></dl>
</li>
</ul>
<a name="setBufferSize(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBufferSize</h4>
<pre>public&nbsp;void&nbsp;setBufferSize(int&nbsp;bufSize)</pre>
<div class="block">Set the internal buffer size.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>bufSize</code> - The size of the buffer</dd></dl>
</li>
</ul>
<a name="getBufferSize()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBufferSize</h4>
<pre>public&nbsp;int&nbsp;getBufferSize()</pre>
<div class="block">Retrieve the current internal buffer size.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The current buffer size.</dd></dl>
</li>
</ul>
<a name="configure(org.apache.commons.net.ftp.FTPClientConfig)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>configure</h4>
<pre>public&nbsp;void&nbsp;configure(<a href="../../../../../org/apache/commons/net/ftp/FTPClientConfig.html" title="class in org.apache.commons.net.ftp">FTPClientConfig</a>&nbsp;config)</pre>
<div class="block">Implementation of the <a href="../../../../../org/apache/commons/net/ftp/Configurable.html" title="interface in org.apache.commons.net.ftp"><code>Configurable</code></a> interface.
 In the case of this class, configuring merely makes the config object available for the
 factory methods that construct parsers.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/Configurable.html#configure(org.apache.commons.net.ftp.FTPClientConfig)">configure</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/commons/net/ftp/Configurable.html" title="interface in org.apache.commons.net.ftp">Configurable</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>config</code> - <a href="../../../../../org/apache/commons/net/ftp/FTPClientConfig.html" title="class in org.apache.commons.net.ftp"><code>FTPClientConfig</code></a> object used to
 provide non-standard configurations to the parser.</dd><dt><span class="strong">Since:</span></dt>
  <dd>1.4</dd></dl>
</li>
</ul>
<a name="setListHiddenFiles(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setListHiddenFiles</h4>
<pre>public&nbsp;void&nbsp;setListHiddenFiles(boolean&nbsp;listHiddenFiles)</pre>
<div class="block">You can set this to true if you would like to get hidden files when <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listFiles(java.lang.String)"><code>listFiles(java.lang.String)</code></a> too.
 A <code>LIST -a</code> will be issued to the ftp server.
 It depends on your ftp server if you need to call this method, also dont expect to get rid
 of hidden files if you call this method with "false".</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>listHiddenFiles</code> - true if hidden files should be listed</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.0</dd></dl>
</li>
</ul>
<a name="getListHiddenFiles()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getListHiddenFiles</h4>
<pre>public&nbsp;boolean&nbsp;getListHiddenFiles()</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>the current state</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setListHiddenFiles(boolean)"><code>setListHiddenFiles(boolean)</code></a></dd></dl>
</li>
</ul>
<a name="isUseEPSVwithIPv4()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isUseEPSVwithIPv4</h4>
<pre>public&nbsp;boolean&nbsp;isUseEPSVwithIPv4()</pre>
<div class="block">Whether should attempt to use EPSV with IPv4.
 Default (if not set) is <code>false</code></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>true if should attempt EPS</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.2</dd></dl>
</li>
</ul>
<a name="setUseEPSVwithIPv4(boolean)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setUseEPSVwithIPv4</h4>
<pre>public&nbsp;void&nbsp;setUseEPSVwithIPv4(boolean&nbsp;selected)</pre>
<div class="block">Set whether to use EPSV with IPv4.
 Might be worth enabling in some circumstances.
 
 For example, when using IPv4 with NAT it
 may work with some rare configurations.
 E.g. if FTP server has a static PASV address (external network)
 and the client is coming from another internal network.
 In that case the data connection after PASV command would fail,
 while EPSV would make the client succeed by taking just the port.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>selected</code> - value to set.</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.2</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/commons/net/ftp/FTP.html" title="class in org.apache.commons.net.ftp"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/commons/net/ftp/FTPClientConfig.html" title="class in org.apache.commons.net.ftp"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/commons/net/ftp/FTPClient.html" target="_top">Frames</a></li>
<li><a href="FTPClient.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>