Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

com::cosylab::util::FileHelper Class Reference

List of all members.

Static Public Member Functions

String getTempFileName (String fileNameProperty, String fileName)
void setFileAttributes (String attribs, String filePath)
void copy (File source, File dest, boolean preserveTime) throws IOException

Detailed Description

Author:
dvitas


Member Function Documentation

void com::cosylab::util::FileHelper::copy File  source,
File  dest,
boolean  preserveTime
throws IOException [inline, static]
 

Copies file source to location dest. Necessary directories are created automatically. The modification time is preserved if preserveTime is true.

String com::cosylab::util::FileHelper::getTempFileName String  fileNameProperty,
String  fileName
[inline, static]
 

Method getTempFileName. This is a copy from C++ acsutilTempFile

Parameters:
fileNameEnvVar 
fileName 
Returns:
String

void com::cosylab::util::FileHelper::setFileAttributes String  attribs,
String  filePath
[inline, static]
 

Tries to set attributes given by attribs on given file by executing "chmod -R attribs filePath" as external process. If it fails or there is no such command on current OS it does nothing naither printouts the error.

Parameters:
attribs 
filePath 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:13:18 2009 for ACS Java API by doxygen 1.3.8