org.objectweb.jonas_lib.deployment.work.FileManager Class Reference

Inherited by org.objectweb.jonas_lib.deployment.work.EarFileManager.

Inheritance diagram for org.objectweb.jonas_lib.deployment.work.FileManager:

Inheritance graph
[legend]
List of all members.

Static Public Member Functions

String fileToTimeStampDir (URL urlFileName) throws FileManagerException
String fileToTimeStampDir (URL urlFileName, String ext) throws FileManagerException
void copyFile (String pSrcFilename, String pDstFilename) throws FileManagerException

Protected Member Functions

 FileManager ()

Static Protected Member Functions

void dump (InputStream in, File earEntryFile) throws FileManagerException

Detailed Description

JOnAS File manager. This class provides a way for managing the working package files.
Author:
Florent Benoit

Ludovic Bert

Nicolas Van Caneghem <nicolas.vancaneghem@openpricer.com>Allow the deployment of an exploded ear

Definition at line 50 of file FileManager.java.


Constructor & Destructor Documentation

org.objectweb.jonas_lib.deployment.work.FileManager.FileManager  )  [protected]
 

Constructor. Private as it is an utility class

Definition at line 65 of file FileManager.java.


Member Function Documentation

void org.objectweb.jonas_lib.deployment.work.FileManager.copyFile String  pSrcFilename,
String  pDstFilename
throws FileManagerException [static]
 

Copy a file

Parameters:
pSrcFilename source file
pDstFilename dest file
Exceptions:
FileManagerException if the copy of the file failed

Definition at line 164 of file FileManager.java.

void org.objectweb.jonas_lib.deployment.work.FileManager.dump InputStream  in,
File  earEntryFile
throws FileManagerException [static, protected]
 

Write an input stream to a given file.

Parameters:
in the inputStream.
earEntryFile the file where the inputstream must be dumped.
Exceptions:
FileManagerException if the dump failed.

Definition at line 137 of file FileManager.java.

Referenced by org.objectweb.jonas_lib.deployment.work.EarFileManager.unpackEar().

String org.objectweb.jonas_lib.deployment.work.FileManager.fileToTimeStampDir URL  urlFileName,
String  ext
throws FileManagerException [static]
 

Give the unpack destination directory of the specified file.

Parameters:
urlFileName the url of the name of the EAR file (ends with the .ear extension).
ext the suffix to concatenate to the build name
Returns:
the timestamp destination directory of the specified file.
Exceptions:
FileManagerException if we can't get the timestamp.

Definition at line 88 of file FileManager.java.

String org.objectweb.jonas_lib.deployment.work.FileManager.fileToTimeStampDir URL  urlFileName  )  throws FileManagerException [static]
 

Give the unpack destination directory of the specified file.

Parameters:
urlFileName the url of the name of the EAR file (ends with the .ear extension).
Returns:
the timestamp destination directory of the specified file.
Exceptions:
FileManagerException if we can't get the timestamp.

Definition at line 76 of file FileManager.java.

Referenced by org.objectweb.jonas_lib.deployment.work.EarFileManager.isUnpackedEar(), and org.objectweb.jonas_lib.deployment.work.EarFileManager.unpackEar().


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