org.opensync.engine.server.protocol
Class FTPProtocol

java.lang.Object
  extended byorg.opensync.engine.server.DefaultProtocol
      extended byorg.opensync.engine.server.protocol.FTPProtocol
All Implemented Interfaces:
Protocol, java.io.Serializable

public class FTPProtocol
extends DefaultProtocol

The protocol used to get information from a ftp file server

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.opensync.engine.server.DefaultProtocol
connector, folder, name, removeFile, renameFile
 
Fields inherited from interface org.opensync.engine.server.Protocol
FTP, WIN_FILE
 
Constructor Summary
FTPProtocol()
          Construct a FTPProtocl
 
Method Summary
 java.lang.String[] getViews(java.lang.String fileName)
          Get the content of the filefileName
 void putView(java.lang.String fileContent, java.lang.String fileName)
          Put the fileContent in the file fileName int the folder directory
 
Methods inherited from class org.opensync.engine.server.DefaultProtocol
clean, getConnector, getFolder, getName, init, isRemoveFile, isRenameFile, setConnector, setFolder, setName, setRemoveFile, setRenameFile, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FTPProtocol

public FTPProtocol()
Construct a FTPProtocl

Method Detail

putView

public void putView(java.lang.String fileContent,
                    java.lang.String fileName)
             throws OpenSyncException,
                    java.io.IOException
Put the fileContent in the file fileName int the folder directory

Parameters:
fileContent - the file content
fileName - the file name
Throws:
OpenSyncException
java.io.IOException

getViews

public java.lang.String[] getViews(java.lang.String fileName)
                            throws OpenSyncException,
                                   java.io.IOException
Get the content of the filefileName

Parameters:
fileName - the file name (not use *)
Throws:
OpenSyncException
java.io.IOException


Copyright © 2004 sourceforge. All Rights Reserved.