alma::acs::eclipse::utils::jar::FileHelper Class Reference

List of all members.

Static Public Member Functions

static void copy (File src, File dest) throws IOException
static void copy (String src, String dest) throws IOException
static void link (String src, String dest) throws IOException
static void link (File src, File dest) throws IOException

Detailed Description

An helper class performing usefule file oeprations.

Author:
acaproni

Member Function Documentation

static void alma::acs::eclipse::utils::jar::FileHelper::copy ( String  src,
String  dest 
) throws IOException [inline, static]

Copy the source file in the destination.

Parameters:
src The path of the source file
dest The path of the dest file
Exceptions:
IOException In case of I/O error while copying

References copy().

static void alma::acs::eclipse::utils::jar::FileHelper::copy ( File  src,
File  dest 
) throws IOException [inline, static]

Copy the source file in the destination.

Parameters:
src The file to copy
dest The copied file
Exceptions:
IOException In case of I/O error while copying

Referenced by copy(), and link().

static void alma::acs::eclipse::utils::jar::FileHelper::link ( File  src,
File  dest 
) throws IOException [inline, static]

Link the source file in the destination.

Java does not support file links and this method should be implemented with the help of JNI. This problems should be fixed in the incoming JDK7.

In this version the link is replaced by a copy.

TODO: Implement this method with JNI and use JDK7 method when available

Parameters:
src The file to copy
dest The copied file
Exceptions:
IOException In case of I/O error while copying

References copy().

static void alma::acs::eclipse::utils::jar::FileHelper::link ( String  src,
String  dest 
) throws IOException [inline, static]

Link the source file in the destination.

Java does not support file links and this method should be implemented with the help of JNI. This problems should be fixed in the incoming JDK7.

In this version the link is replaced by a copy.

TODO: Implement this method with JNI and use JDK7 method when available

Parameters:
src The path of the source file
dest The path of the dest file
Exceptions:
IOException In case of I/O error while linking

References copy().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2