org.apache.commons.vfs.provider.ftp
Interface FtpClient


public interface FtpClient

What VFS expects from an ftp client to provide.

Author:
Commons VFS team

Method Summary
 boolean abort()
           
 java.io.OutputStream appendFileStream(java.lang.String relPath)
           
 boolean completePendingCommand()
           
 boolean deleteFile(java.lang.String relPath)
           
 void disconnect()
           
 java.lang.String getReplyString()
           
 boolean isConnected()
           
 org.apache.commons.net.ftp.FTPFile[] listFiles(java.lang.String relPath)
           
 boolean makeDirectory(java.lang.String relPath)
           
 boolean removeDirectory(java.lang.String relPath)
           
 boolean rename(java.lang.String oldName, java.lang.String newName)
           
 java.io.InputStream retrieveFileStream(java.lang.String relPath)
           
 java.io.InputStream retrieveFileStream(java.lang.String relPath, long restartOffset)
           
 java.io.OutputStream storeFileStream(java.lang.String relPath)
           
 

Method Detail

isConnected

boolean isConnected()
                    throws FileSystemException
Throws:
FileSystemException

disconnect

void disconnect()
                throws java.io.IOException
Throws:
java.io.IOException

listFiles

org.apache.commons.net.ftp.FTPFile[] listFiles(java.lang.String relPath)
                                               throws java.io.IOException
Throws:
java.io.IOException

removeDirectory

boolean removeDirectory(java.lang.String relPath)
                        throws java.io.IOException
Throws:
java.io.IOException

deleteFile

boolean deleteFile(java.lang.String relPath)
                   throws java.io.IOException
Throws:
java.io.IOException

rename

boolean rename(java.lang.String oldName,
               java.lang.String newName)
               throws java.io.IOException
Throws:
java.io.IOException

makeDirectory

boolean makeDirectory(java.lang.String relPath)
                      throws java.io.IOException
Throws:
java.io.IOException

completePendingCommand

boolean completePendingCommand()
                               throws java.io.IOException
Throws:
java.io.IOException

retrieveFileStream

java.io.InputStream retrieveFileStream(java.lang.String relPath)
                                       throws java.io.IOException
Throws:
java.io.IOException

retrieveFileStream

java.io.InputStream retrieveFileStream(java.lang.String relPath,
                                       long restartOffset)
                                       throws java.io.IOException
Throws:
java.io.IOException

appendFileStream

java.io.OutputStream appendFileStream(java.lang.String relPath)
                                      throws java.io.IOException
Throws:
java.io.IOException

storeFileStream

java.io.OutputStream storeFileStream(java.lang.String relPath)
                                     throws java.io.IOException
Throws:
java.io.IOException

abort

boolean abort()
              throws java.io.IOException
Throws:
java.io.IOException

getReplyString

java.lang.String getReplyString()
                                throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.