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

Quick Search    Search Deep

com.flexstor.common.io.xfile
Interface XFileCopyI  view XFileCopyI download XFileCopyI.java

All Superinterfaces:
XFileAccessorI

public interface XFileCopyI
extends XFileAccessorI

This interface defines all the methods to be implemented by a copy utility for a specific file protocol. Every file protocol must have a copy utility class.


Method Summary
 boolean copy(java.lang.String sSourceFile, java.lang.String sDestFile)
          Copies the source file to the destination file specified.
 boolean copyBytes(byte[] byteArray, java.lang.String sDestFile)
          Copies the byte array into the destination file specified.
 boolean copyToDir(java.lang.String sSourceFile, java.lang.String sDestDir)
          Copies the source file to the destination directory specified.
 
Methods inherited from interface com.flexstor.common.io.xfile.XFileAccessorI
connect, disconnect
 

Method Detail

copy

public boolean copy(java.lang.String sSourceFile,
                    java.lang.String sDestFile)
Copies the source file to the destination file specified.


copyToDir

public boolean copyToDir(java.lang.String sSourceFile,
                         java.lang.String sDestDir)
Copies the source file to the destination directory specified.


copyBytes

public boolean copyBytes(byte[] byteArray,
                         java.lang.String sDestFile)
Copies the byte array into the destination file specified.