net.sf.jfilesync.plugins.net
Interface AbstractConnectionProxy

All Known Implementing Classes:
AbstractConnectionProxyImpl, CaseInsensitiveProxy, ConnectionProxy, ConnectionStatusProxy, EncodingProxy, KeepConnectionAliveProxy

public interface AbstractConnectionProxy


Method Summary
 void abort()
           
 void chdir(java.lang.String path)
           
 void connect()
           
 void disconnect()
           
 boolean exists(java.lang.String path)
           
 void get(java.lang.String remoteFileName, java.io.OutputStream outstream)
           
 java.lang.String getCurrentPath()
           
 java.lang.String getEncodedFileName(java.lang.String fileName)
           
 CapivaraFileInputStream getFileInputStream(java.lang.String fileName)
           
 CapivaraFileOutputStream getFileOutputStream(java.lang.String fileName)
           
 TPathControlInterface getPathControlInstance()
           
 ConnectionPlugin getPlugin()
           
 boolean isConnected()
           
 boolean isFile(java.lang.String path)
           
 boolean isLink(java.lang.String path)
           
 boolean isLocalConnection()
           
 TFileData ls()
           
 TFileData ls(java.lang.String path)
           
 void mkdir(java.lang.String dirName)
           
 void mkdirs(java.lang.String dirName)
           
 void put(java.io.InputStream instream, java.lang.String remoteFileName)
           
 java.lang.String pwd()
           
 void remove(java.lang.String fileName)
           
 void rename(java.lang.String oldAbsoluteFileName, java.lang.String newName)
           
 void rmdir(java.lang.String dirName)
           
 void setHidden(java.lang.String path)
           
 void setModificationTime(java.lang.String fileName, long mtime)
           
 void setPermissions(java.lang.String fileName, int permissions)
           
 

Method Detail

connect

void connect()
             throws PluginConnectException
Throws:
PluginConnectException

disconnect

void disconnect()

ls

TFileData ls()
             throws java.io.IOException
Throws:
java.io.IOException

ls

TFileData ls(java.lang.String path)
             throws java.io.IOException
Throws:
java.io.IOException

isConnected

boolean isConnected()

isLocalConnection

boolean isLocalConnection()

chdir

void chdir(java.lang.String path)
           throws java.io.IOException
Throws:
java.io.IOException

getCurrentPath

java.lang.String getCurrentPath()

getFileInputStream

CapivaraFileInputStream getFileInputStream(java.lang.String fileName)
                                           throws java.io.IOException
Throws:
java.io.IOException

put

void put(java.io.InputStream instream,
         java.lang.String remoteFileName)
         throws java.io.IOException
Throws:
java.io.IOException

getFileOutputStream

CapivaraFileOutputStream getFileOutputStream(java.lang.String fileName)
                                             throws java.io.IOException
Throws:
java.io.IOException

get

void get(java.lang.String remoteFileName,
         java.io.OutputStream outstream)
         throws java.io.IOException
Throws:
java.io.IOException

getEncodedFileName

java.lang.String getEncodedFileName(java.lang.String fileName)
                                    throws java.io.IOException
Throws:
java.io.IOException

mkdir

void mkdir(java.lang.String dirName)
           throws java.io.IOException
Throws:
java.io.IOException

mkdirs

void mkdirs(java.lang.String dirName)
            throws java.io.IOException
Throws:
java.io.IOException

remove

void remove(java.lang.String fileName)
            throws java.io.IOException
Throws:
java.io.IOException

rmdir

void rmdir(java.lang.String dirName)
           throws java.io.IOException
Throws:
java.io.IOException

abort

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

pwd

java.lang.String pwd()

rename

void rename(java.lang.String oldAbsoluteFileName,
            java.lang.String newName)
            throws java.io.IOException
Throws:
java.io.IOException

setModificationTime

void setModificationTime(java.lang.String fileName,
                         long mtime)
                         throws java.io.IOException
Throws:
java.io.IOException

setPermissions

void setPermissions(java.lang.String fileName,
                    int permissions)
                    throws java.io.IOException
Throws:
java.io.IOException

exists

boolean exists(java.lang.String path)

isLink

boolean isLink(java.lang.String path)
               throws java.io.IOException
Throws:
java.io.IOException

isFile

boolean isFile(java.lang.String path)
               throws java.io.IOException
Throws:
java.io.IOException

getPlugin

ConnectionPlugin getPlugin()

getPathControlInstance

TPathControlInterface getPathControlInstance()

setHidden

void setHidden(java.lang.String path)
               throws java.io.IOException
Throws:
java.io.IOException