jAudioFeatureExtractor.GeneralTools
Class FileMethods

java.lang.Object
  extended by jAudioFeatureExtractor.GeneralTools.FileMethods

public class FileMethods
extends java.lang.Object

A holder class for static methods relating to files.

Author:
Cory McKay

Constructor Summary
FileMethods()
           
 
Method Summary
static void copyFile(java.lang.String original, java.lang.String destination)
          Copies the contents of one file to another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileMethods

public FileMethods()
Method Detail

copyFile

public static void copyFile(java.lang.String original,
                            java.lang.String destination)
                     throws java.lang.Exception
Copies the contents of one file to another. Throws an exception if the destination file already exists or if the original file does not exist.

Parameters:
original - The name of the file to be copied.
destination - The name of the file to be copied to.
Throws:
java.lang.Exception