org.objectweb.jonas_lib.genbase.utils.FileUtils Class Reference

List of all members.

Static Public Member Functions

File unpack (JarFile source) throws IOException
void copy (File source, File target) throws IOException

Static Public Attributes

final int MAX_BUFFER_SIZE = 1024

Detailed Description

FileUtils is an utility class with no instance. Used to pack a directory into a jar archive, copy a file, move a file, ...

Author:
Guillaume Sauthier

Definition at line 42 of file FileUtils.java.


Member Function Documentation

void org.objectweb.jonas_lib.genbase.utils.FileUtils.copy File  source,
File  target
throws IOException [static]
 

Copy a source file into a destination directory.

Parameters:
source source file
target destination directory
Exceptions:
IOException When copy cannot succeed

Definition at line 133 of file FileUtils.java.

File org.objectweb.jonas_lib.genbase.utils.FileUtils.unpack JarFile  source  )  throws IOException [static]
 

Unpack the source archive in a temporary directory and returns temporary directory created.

Parameters:
source source JarFile to be unpacked
Returns:
root directory containing unpacked archive.
Exceptions:
IOException When unpack fails

Definition at line 63 of file FileUtils.java.

References org.objectweb.jonas_lib.genbase.utils.TempRepository.createDir().

Here is the call graph for this function:


Member Data Documentation

final int org.objectweb.jonas_lib.genbase.utils.FileUtils.MAX_BUFFER_SIZE = 1024 [static]
 

Buffer Size

Definition at line 45 of file FileUtils.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:13:00 2005 for JOnAS by  doxygen 1.3.9.1