com.limegroup.gnutella.util
Class Expand

java.lang.Object
  extended bycom.limegroup.gnutella.util.Expand

public final class Expand
extends java.lang.Object

Unzip a file. "Imported" from Ant, with small adaptations.


Method Summary
static void expandFile(java.io.File source, java.io.File dest)
          Expand the specified source file into the specified destination directory.
static void expandFile(java.io.File source, java.io.File dest, boolean overwrite)
          Expand the specified source file into the specified destination directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

expandFile

public static void expandFile(java.io.File source,
                              java.io.File dest)
                       throws java.io.IOException
Expand the specified source file into the specified destination directory.

Parameters:
source - the source File to expand
dest - the destination directory in which to expand the source file
Throws:
IOException - if the source file cannot be found, if the destination directory cannot be written to, or there is any other IO error
java.io.IOException

expandFile

public static void expandFile(java.io.File source,
                              java.io.File dest,
                              boolean overwrite)
                       throws java.io.IOException
Expand the specified source file into the specified destination directory.

Parameters:
source - the source File to expand
dest - the destination directory in which to expand the source file
Throws:
IOException - if the source file cannot be found, if the destination directory cannot be written to, or there is any other IO error
java.io.IOException