Package adams.core.net
Class SMB
- java.lang.Object
-
- adams.core.net.SMB
-
public class SMB extends Object
Class for SMB actions.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description SMB()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
copyFrom(LoggingObject owner, SMBAuthenticationProvider provider, String remoteFile, File localFile)
Copies a remote file onto the local machine.static String
copyTo(LoggingObject owner, SMBAuthenticationProvider provider, File localFile, String remoteFile)
Copies a local file to a remote server.
-
-
-
Method Detail
-
copyTo
public static String copyTo(LoggingObject owner, SMBAuthenticationProvider provider, File localFile, String remoteFile)
Copies a local file to a remote server.- Parameters:
owner
- the owner that initiates the transfer, can be nullprovider
- the SMB authentication provider to uselocalFile
- the local fileremoteFile
- the remote file- Returns:
- null if successful, otherwise error message
-
copyFrom
public static String copyFrom(LoggingObject owner, SMBAuthenticationProvider provider, String remoteFile, File localFile)
Copies a remote file onto the local machine.- Parameters:
owner
- the owner that initiates the transferprovider
- the SSH session provider to useremoteFile
- the remote file to copylocalFile
- the local file- Returns:
- null if successful, otherwise error message
-
-