Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.ide.util
Class FileCopyUtil

java.lang.Object
  extended by oracle.ide.util.FileCopyUtil

public final class FileCopyUtil
extends java.lang.Object

Since there is no internal java class/method to copy a file, this class contains simple static utility methods to copy files.

Since:
5.0

Method Summary
static void copyFile(java.io.File src, java.io.File target)
          Copies one file (src) to target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copyFile

public static void copyFile(java.io.File src,
                            java.io.File target)
                     throws java.io.IOException
Copies one file (src) to target. This version takes File objects. In addition to copying a file, it will create the required directory trees for the output file.

Parameters:
src - Source file
target - Desired destination file
Throws:
java.io.IOException

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.