1 16 package org.apache.commons.vfs.provider.ftp; 17 18 import org.apache.commons.net.ftp.FTPFile; 19 import org.apache.commons.vfs.FileSystemException; 20 21 import java.io.IOException ; 22 import java.io.InputStream ; 23 import java.io.OutputStream ; 24 25 28 public interface FtpClient 29 { 30 boolean isConnected() throws FileSystemException; 31 32 void disconnect() throws IOException ; 33 34 FTPFile[] listFiles(String key, String relPath) throws IOException ; 35 36 boolean removeDirectory(String relPath) throws IOException ; 37 38 boolean deleteFile(String relPath) throws IOException ; 39 40 boolean rename(String oldName, String newName) throws IOException ; 41 42 boolean makeDirectory(String relPath) throws IOException ; 43 44 boolean completePendingCommand() throws IOException ; 45 46 InputStream retrieveFileStream(String relPath) throws IOException ; 47 48 InputStream retrieveFileStream(String relPath, long restartOffset) throws IOException ; 49 50 OutputStream appendFileStream(String relPath) throws IOException ; 51 52 OutputStream storeFileStream(String relPath) throws IOException ; 53 54 public boolean abort() throws IOException ; 55 56 public String getReplyString() throws IOException ; 57 } | Popular Tags |