Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.io.xfile.unc
Class UncMove  view UncMove download UncMove.java

java.lang.Object
  extended bycom.flexstor.common.io.xfile.unc.UncCopy
      extended bycom.flexstor.common.io.xfile.unc.UncMove
All Implemented Interfaces:
com.flexstor.common.io.xfile.XFileAccessorI, com.flexstor.common.io.xfile.XFileCopyI, com.flexstor.common.io.xfile.XFileMoveI

public class UncMove
extends UncCopy
implements com.flexstor.common.io.xfile.XFileMoveI

UncMove copy files from the local file system; then it deletes the original file.


Field Summary
private  java.lang.String sThisService
           
 
Fields inherited from class com.flexstor.common.io.xfile.unc.UncCopy
IDENTIFIER
 
Constructor Summary
UncMove()
           
 
Method Summary
 boolean connect(java.lang.String sHost, java.lang.String sUser, java.lang.String sPassword)
          Connects to host using the credentials specified.
 void disconnect()
          Disconnects from host.
 boolean move(java.lang.String sSourceFile, java.lang.String sTargetFile)
          Moves the source file to the destination file specified.
 boolean moveToDir(java.lang.String sSourceFile, java.lang.String sTargetDir)
          Moves the source file to the destination directory specified.
 
Methods inherited from class com.flexstor.common.io.xfile.unc.UncCopy
copy, copyBytes, copyToDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sThisService

private java.lang.String sThisService
Constructor Detail

UncMove

public UncMove()
Method Detail

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
Overrides:
connect in class UncCopy

disconnect

public void disconnect()
Disconnects from host.

Specified by:
disconnect in interface com.flexstor.common.io.xfile.XFileAccessorI
Overrides:
disconnect in class UncCopy

move

public boolean move(java.lang.String sSourceFile,
                    java.lang.String sTargetFile)
Description copied from interface: com.flexstor.common.io.xfile.XFileMoveI
Moves the source file to the destination file specified.

Specified by:
move in interface com.flexstor.common.io.xfile.XFileMoveI

moveToDir

public boolean moveToDir(java.lang.String sSourceFile,
                         java.lang.String sTargetDir)
Description copied from interface: com.flexstor.common.io.xfile.XFileMoveI
Moves the source file to the destination directory specified.

Specified by:
moveToDir in interface com.flexstor.common.io.xfile.XFileMoveI