ptolemy.util
Class FileUtilities

java.lang.Object
  extended byptolemy.util.FileUtilities

public class FileUtilities
extends java.lang.Object

A collection of utilities for manipulating files These utilities do not depend on any other ptolemy.* packages.

Since:
Ptolemy II 4.0
Version:
$Id: FileUtilities.java,v 1.10 2004/04/13 05:55:34 cxh Exp $
Author:
Christopher Hylands Brooks
Accepted Rating:
Red (cxh)
Proposed Rating:
Yellow (eal)

Method Summary
static boolean binaryCopyURLToFile(java.net.URL sourceURL, java.io.File destinationFile)
          Copy sourceURL to destinationFile without doing any byte conversion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

binaryCopyURLToFile

public static boolean binaryCopyURLToFile(java.net.URL sourceURL,
                                          java.io.File destinationFile)
                                   throws java.io.IOException
Copy sourceURL to destinationFile without doing any byte conversion.

Parameters:
sourceURL - The source URL
destinationFile - The destination File.
Returns:
true if the file was copied, false if the file was not copied because the sourceURL and the destinationFile refer to the same file
Throws:
java.io.IOException