java.lang.Object
com.flexstor.common.io.xfile.unc.UncCopy
- All Implemented Interfaces:
- com.flexstor.common.io.xfile.XFileAccessorI, com.flexstor.common.io.xfile.XFileCopyI
- Direct Known Subclasses:
- UncMove
- public class UncCopy
- extends java.lang.Object
- implements com.flexstor.common.io.xfile.XFileCopyI
UncCopy copy files from the local file system
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IDENTIFIER
public static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
sThisService
private java.lang.String sThisService
UncCopy
public UncCopy()
connect
public boolean connect(java.lang.String sHost,
java.lang.String sUser,
java.lang.String sPassword)
- Connects to host using the credentials specified.
Returns true if connection was sucessful; false otherwise.
- Specified by:
connect in interface com.flexstor.common.io.xfile.XFileAccessorI
disconnect
public void disconnect()
- Disconnects from host.
- Specified by:
disconnect in interface com.flexstor.common.io.xfile.XFileAccessorI
copy
public boolean copy(java.lang.String sSourceFile,
java.lang.String sTargetFile)
- Description copied from interface:
com.flexstor.common.io.xfile.XFileCopyI
- Copies the source file to the destination file specified.
- Specified by:
copy in interface com.flexstor.common.io.xfile.XFileCopyI
copyToDir
public boolean copyToDir(java.lang.String sSource,
java.lang.String sTargetDir)
- Description copied from interface:
com.flexstor.common.io.xfile.XFileCopyI
- Copies the source file to the destination directory specified.
- Specified by:
copyToDir in interface com.flexstor.common.io.xfile.XFileCopyI
copyBytes
public boolean copyBytes(byte[] byteArray,
java.lang.String destinationFile)
- Description copied from interface:
com.flexstor.common.io.xfile.XFileCopyI
- Copies the byte array into the destination file specified.
- Specified by:
copyBytes in interface com.flexstor.common.io.xfile.XFileCopyI
checkDestination
private boolean checkDestination(java.lang.String destination)