org.opensync.engine.server.protocol
Class WinFileProtocol
java.lang.Object
org.opensync.engine.server.DefaultProtocol
org.opensync.engine.server.protocol.WinFileProtocol
- All Implemented Interfaces:
- Protocol, java.io.Serializable
- public class WinFileProtocol
- extends DefaultProtocol
The protocol used to get information from a win file server
- Version:
- 1.0
- Author:
- SOFTMED
- See Also:
- Serialized Form
|
Field Summary |
protected static java.lang.String |
EXT_DONE
The file extention when file treated |
|
Method Summary |
void |
clean(java.lang.String fileName)
Clean files (rename or remove) if necessary after the synchronisation done. |
FileHelper |
getAFileHelper()
|
java.lang.String[] |
getViews(java.lang.String fileName)
Get the content of files fileName |
void |
init()
|
void |
putView(java.lang.String fileContent,
java.lang.String fileName)
Put the fileContent in the file fileName int
the folder directory |
void |
setAFileHelper(FileHelper afh)
|
void |
setReadblockSize(long size)
|
| Methods inherited from class org.opensync.engine.server.DefaultProtocol |
getConnector, getFolder, getName, 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 |
EXT_DONE
protected static final java.lang.String EXT_DONE
- The file extention when file treated
- See Also:
- Constant Field Values
WinFileProtocol
public WinFileProtocol()
- Construct a WinFileProtocl
setReadblockSize
public void setReadblockSize(long size)
setAFileHelper
public void setAFileHelper(FileHelper afh)
getAFileHelper
public FileHelper getAFileHelper()
init
public void init()
- Specified by:
init in interface Protocol- Overrides:
init in class DefaultProtocol
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 contentfileName - 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 files
fileName
- Parameters:
fileName - the file name (may use *)
- Throws:
OpenSyncException
java.io.IOException
clean
public void clean(java.lang.String fileName)
throws OpenSyncException,
java.io.IOException
- Clean files (rename or remove) if necessary after the synchronisation done.
- Specified by:
clean in interface Protocol- Overrides:
clean in class DefaultProtocol
- Parameters:
fileName - the file name to clean
- Throws:
OpenSyncException
java.io.IOException
Copyright © 2004 sourceforge. All Rights Reserved.