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 UncCopy  view UncCopy download UncCopy.java

java.lang.Object
  extended bycom.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


Field Summary
static java.lang.String IDENTIFIER
           
private  java.lang.String sThisService
           
 
Constructor Summary
UncCopy()
           
 
Method Summary
private  boolean checkDestination(java.lang.String destination)
           
 boolean connect(java.lang.String sHost, java.lang.String sUser, java.lang.String sPassword)
          Connects to host using the credentials specified.
 boolean copy(java.lang.String sSourceFile, java.lang.String sTargetFile)
          Copies the source file to the destination file specified.
 boolean copyBytes(byte[] byteArray, java.lang.String destinationFile)
          Copies the byte array into the destination file specified.
 boolean copyToDir(java.lang.String sSource, java.lang.String sTargetDir)
          Copies the source file to the destination directory specified.
 void disconnect()
          Disconnects from host.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTIFIER

public static final java.lang.String IDENTIFIER
See Also:
Constant Field Values

sThisService

private java.lang.String sThisService
Constructor Detail

UncCopy

public UncCopy()
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

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)