...
For the purposes of this example the remote system is named "sftpremote.example.com". The files that will be retrieved are in a directory named * /data/source/fires and the files are named smokeYearMoDy_wkt.txt. The data file for March 25, 2008 is named "smoke20080325_wkt.txt".
The downloaded files will be received in the local directory /extra/data/fires/smoke.
Connect to the remote sftpremote.example.com system using the login "smokey" and password "bear".
Key Concepts
Source Code
pom.xml Project File
This example uses Maven2. There is a * pom.xml
* to define the project
No Format |
---|
}}} == Code Listing == Content of '''{{{src/main/java/gov/noaa/eds/byExample/trySimpleVfsSftp/App.java |
*'''. Be sure to customize the variables near the top of the listing to match your environment if you intend to run this code. The variable to modifiy are host, user, password, remoteDir, filePatternString
and localDir
.
...