IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.patterns.framework.test
Class FileCopyUtil

java.lang.Object
  extended bycom.ibm.xtools.patterns.framework.test.FileCopyUtil

public class FileCopyUtil
extends Object

Utility class for copying files and folders


Method Summary
static void copyFile(String sourceFile, String targetFolder)
          Copies a source file to a target folder
static void copyFile(String sourceFolder, String targetFolder, String sourceName, String targetName)
          Copies a file in a source folder to a target folder
static void copyFolder(String sourceFolder, String targetFolder)
          Copies the contents of a source folder to a target folder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copyFolder

public static void copyFolder(String sourceFolder,
                              String targetFolder)
                       throws FileNotFoundException,
                              IOException
Copies the contents of a source folder to a target folder

Parameters:
sourceFolder - the source folder
targetFolder - the target folder
Throws:
FileNotFoundException
IOException

copyFile

public static void copyFile(String sourceFile,
                            String targetFolder)
                     throws FileNotFoundException,
                            IOException
Copies a source file to a target folder

Parameters:
sourceFile - the source file
targetFolder - the target folder
Throws:
FileNotFoundException
IOException

copyFile

public static void copyFile(String sourceFolder,
                            String targetFolder,
                            String sourceName,
                            String targetName)
                     throws FileNotFoundException,
                            IOException
Copies a file in a source folder to a target folder

Parameters:
sourceFolder - the source folder
targetFolder - the target folder
sourceName - of the source file to copy
targetName - of the destination file to copy to
Throws:
FileNotFoundException
IOException

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2004. All rights reserved.