lhmc.files
Class CopyManager

java.lang.Object
  extended by lhmc.files.CopyManager

public class CopyManager
extends java.lang.Object

CopyManager manages the copy of files between difrent locations. It can copy: from local to local. from local to remote. from remote to local. from remote to remote.

Version:
0.01 Jun 2007
Author:
Cristina Roura Claver

Constructor Summary
CopyManager(java.lang.String actualLocation, java.lang.String locationToCopy, java.lang.String locationToCopyType, java.lang.String localPathToCopy, java.lang.String mediaType, java.io.FileFilter customFileFilter)
          Constructor of CopyManager
 
Method Summary
 void copyFiles(java.util.Vector<java.net.URL> filesToCopy, java.lang.String directoryToCopy)
          Copies a vector of url files to a directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyManager

public CopyManager(java.lang.String actualLocation,
                   java.lang.String locationToCopy,
                   java.lang.String locationToCopyType,
                   java.lang.String localPathToCopy,
                   java.lang.String mediaType,
                   java.io.FileFilter customFileFilter)
Constructor of CopyManager

Parameters:
actualLocation - the location where the files to copy lay.
locationToCopy - the location where the files would be copied.
locationToCopyType - the type of the location to copy.
localPathToCopy - the path where the files would be copied.
mediaType - the type of media files to copy.
customFileFilter - the filefilter to apply.
Method Detail

copyFiles

public void copyFiles(java.util.Vector<java.net.URL> filesToCopy,
                      java.lang.String directoryToCopy)
Copies a vector of url files to a directory.

Parameters:
filesToCopy - the vector of url files to copy.
directoryToCopy - the directory to copy the files.