| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FTPClientI
Basic FTP client interface. Allows clients to establish FTP connections, send and receive files, get remote directory listings, etc.
        Copyright ©2001-2010 by David R. Tribble, all rights reserved.
        Permission is granted to any person or entity except those designated
        by the United States Department of State as a terrorist, or terrorist
        government or agency, to use and distribute this source code provided
        that the original copyright notice remains present and unaltered.
| Field Summary | |
|---|---|
| static java.lang.String | REVRevision information. | 
| Method Summary | |
|---|---|
|  void | appendFile(java.lang.String src,
           java.lang.String dst)Append (send) a file from the local system to a file on the remote FTP system. | 
|  void | getDirectoryList(java.lang.String path,
                 int max,
                 java.io.OutputStream out)Get (receive) a directory listing from the remote FTP system. | 
|  void | getDirectoryList(java.lang.String path,
                 java.io.OutputStream out)Get (receive) a directory listing from the remote FTP system. | 
|  void | getDirectoryNames(java.lang.String path,
                  int max,
                  java.io.OutputStream out)Get (receive) a list of filenames in a directory on the remote FTP system. | 
|  void | getDirectoryNames(java.lang.String path,
                  java.io.OutputStream out)Get (receive) a list of filenames in a directory on the remote FTP system. | 
|  void | getFile(java.lang.String src,
        java.lang.String dst)Get (receive) a file from the remote FTP system to the local system. | 
|  void | getHelp(java.io.OutputStream out)Get (receive) a help listing of supported FTP commands from the remote FTP system. | 
|  void | getStatus(java.io.OutputStream out)Retrieve the current status of the remote FTP system. | 
|  void | getSystemInfo(java.io.OutputStream out)Retrieve the identity information of the remote FTP system. | 
|  void | login(java.lang.String user,
      java.lang.String pwd)Log in to the remote FTP system. | 
|  void | ping()Ping the remote FTP system. | 
|  void | putFile(java.lang.String src,
        java.lang.String dst)Put (send) a file from the local system to the remote FTP system. | 
| Methods inherited from interface tribble.net.ftp.FTPSimpleClientI | 
|---|
| appendFile, appendFile, connect, createDirectory, disconnect, getCommandPort, getDataPort, getDirectoryNames, getDirectoryNames, getFile, getFile, getHost, getLocalDir, getPassword, getRemoteDir, getTimeOut, getUserID, isConnected, isLoggedIn, login, putFile, putFile, removeDirectory, removeFile, rename, setBufferSize, setCommandPort, setDataPort, setHost, setLocalDir, setPassive, setPassword, setRemoteDir, setRemoteDirUp, setTextMode, setTimeOut, setUserID | 
| Field Detail | 
|---|
static final java.lang.String REV
| Method Detail | 
|---|
void login(java.lang.String user,
           java.lang.String pwd)
           throws java.io.IOException
user - FTP user-ID for the remote system.pwd - User password.  This can be empty ("").
java.io.IOException - Thrown if an error occurs.login(), 
connect()
void ping()
          throws java.io.IOException
java.io.IOException - Thrown if an error occurs, e.g., the FTP connection is broken.
void getSystemInfo(java.io.OutputStream out)
                   throws java.io.IOException
out - Output stream to which the identification information is to be written.
java.io.IOException - Thrown if an I/O error occurs.
void getStatus(java.io.OutputStream out)
               throws java.io.IOException
out - Output stream to which the status is to be written.
java.io.IOException - Thrown if an I/O error occurs.
void getHelp(java.io.OutputStream out)
             throws java.io.IOException
out - Output stream to which the help listing is to be written.
java.io.IOException - Thrown if an error occurs.
void getFile(java.lang.String src,
             java.lang.String dst)
             throws java.io.IOException
src - Remote source filename.  If this does not contain a directory prefix, the
 current remote working directory is assumed.dst - Local source filename.  If this does not contain a directory prefix, the
 current local working directory is assumed.  This may be null, in which
 case the base filename of src (without the directory prefix) is
 used.
java.io.IOException - Thrown if the file could not be transmitted or if any other error occurs.getFile(), 
getFile(), 
putFile(), 
appendFile()
void putFile(java.lang.String src,
             java.lang.String dst)
             throws java.io.IOException
src - Local source filename.  If this does not contain a directory prefix, the
 current local working directory is assumed.dst - Remote target filename.  If this does not contain a directory prefix, the
 current remote working directory is assumed.  This may be null, in which
 case the base filename of src (without the directory prefix) is
 used.
java.io.IOException - Thrown if the file could not be transmitted or if any other error occurs.putFile(), 
putFile(), 
appendFile(), 
getFile()
void appendFile(java.lang.String src,
                java.lang.String dst)
                throws java.io.IOException
src - Local source filename.  If this does not contain a directory prefix, the
 current local working directory is assumed.dst - Remote target filename.  If this does not contain a directory prefix, the
 current remote working directory is assumed.  This may be null, in which
 case the base filename of src (without the directory prefix) is
 used.
java.io.IOException - Thrown if the file could not be transmitted or if any other error occurs.appendFile(), 
appendFile(), 
putFile(), 
getFile()
void getDirectoryList(java.lang.String path,
                      java.io.OutputStream out)
                      throws java.io.IOException
path - The remote directory or filename to list.  If this is empty
 (""), the current remote working directory is assumed.out - Output stream to which the directory listing is to be written.
java.io.IOException - Thrown if an error occurs.
void getDirectoryList(java.lang.String path,
                      int max,
                      java.io.OutputStream out)
                      throws java.io.IOException
path - The remote directory or filename to list.  If this is empty
 (""), the current remote working directory is assumed.max - Maximum number of filenames (output lines) to list.  A value of zero (0)
 specifies that there is no maximum.out - Output stream to which the directory listing is to be written.
java.io.IOException - Thrown if an error occurs.
void getDirectoryNames(java.lang.String path,
                       java.io.OutputStream out)
                       throws java.io.IOException
path - The remote directory or filename to list.  If this is empty
 (""), the current remote working directory is assumed.out - Output stream to which the directory listing is to be written.
java.io.IOException - Thrown if an error occurs.
void getDirectoryNames(java.lang.String path,
                       int max,
                       java.io.OutputStream out)
                       throws java.io.IOException
path - The remote directory or filename to list.  If this is empty
 (""), the current remote working directory is assumed.max - Maximum number of filenames to get.  A value of zero (0) specifies that
 there is no maximum.out - Output stream to which the directory listing is to be written.
java.io.IOException - Thrown if an error occurs.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||