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

Quick Search    Search Deep

Source code: com/flexstor/common/io/xfile/XFileCopyI.java


1   /*
2    * XFileCopyI.java
3    *
4    * Copyright $Date: 2003/08/11 02:22:38 $ FLEXSTOR.net Inc.
5    *
6    * This work is licensed for use and distribution under license terms found at
7    * http://www.flexstor.org/license.html
8    *
9    */
10  
11  package com.flexstor.common.io.xfile;
12  
13  /**
14   * This interface defines all the methods to be implemented by a copy utility
15   * for a specific file protocol.
16   * Every file protocol must have a copy utility class.
17   */
18  public interface XFileCopyI
19     extends XFileAccessorI
20  {
21     /**
22      * Copies the source file to the destination file specified.
23      */
24     public boolean  copy( String sSourceFile, String sDestFile );
25  
26     /**
27      * Copies the source file to the destination directory specified.
28      */
29    public boolean  copyToDir( String sSourceFile, String sDestDir );
30  
31     /**
32      * Copies the byte array into the destination file specified.
33      */
34    public boolean  copyBytes( byte[] byteArray, String sDestFile );
35  }