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

Inherits org.objectweb.jonas_lib.genbase.utils.ArchiveStorer.

Inheritance diagram for org.objectweb.jonas_lib.genbase.utils.DirStorer:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_lib.genbase.utils.DirStorer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DirStorer (J2EEArchive archive, File dir) throws GenBaseException

Protected Member Functions

String convertName (String name)
void addFile (String name) throws IOException
OutputStream getOutputStream (String name) throws IOException

Detailed Description

Store a J2EEArchive in an unpacked form.

Author:
Guillaume Sauthier

Definition at line 39 of file DirStorer.java.


Constructor & Destructor Documentation

org.objectweb.jonas_lib.genbase.utils.DirStorer.DirStorer J2EEArchive  archive,
File  dir
throws GenBaseException
 

Creates a new DirStorer object.

Parameters:
archive archive to be stored
dir output directory
Exceptions:
GenBaseException if cannot create output directory

Definition at line 54 of file DirStorer.java.

References org.objectweb.jonas_lib.genbase.utils.ArchiveStorer.getI18n(), org.objectweb.jonas_lib.I18n.getMessage(), and org.objectweb.jonas_lib.genbase.utils.ArchiveStorer.setOut().

Here is the call graph for this function:


Member Function Documentation

void org.objectweb.jonas_lib.genbase.utils.DirStorer.addFile String  name  )  throws IOException [protected, virtual]
 

add a given file in the filesystem.

Parameters:
name filename
Exceptions:
IOException When fill fails.

Implements org.objectweb.jonas_lib.genbase.utils.ArchiveStorer.

Definition at line 88 of file DirStorer.java.

References org.objectweb.jonas_lib.genbase.utils.ArchiveStorer.fill(), org.objectweb.jonas_lib.genbase.utils.ArchiveStorer.getArchive(), org.objectweb.jonas_lib.genbase.archive.J2EEArchive.getInputStream(), and org.objectweb.jonas_lib.genbase.utils.DirStorer.getOutputStream().

Here is the call graph for this function:

String org.objectweb.jonas_lib.genbase.utils.DirStorer.convertName String  name  )  [protected, virtual]
 

Convert a filename to a local filesystem filename.

Parameters:
name name to be converted
Returns:
converted filename

Implements org.objectweb.jonas_lib.genbase.utils.ArchiveStorer.

Definition at line 77 of file DirStorer.java.

Referenced by org.objectweb.jonas_lib.genbase.utils.DirStorer.getOutputStream().

OutputStream org.objectweb.jonas_lib.genbase.utils.DirStorer.getOutputStream String  name  )  throws IOException [protected, virtual]
 

returns the OuputStream corresponding to the given filename.

Parameters:
name filename to create
Returns:
An OutputStream
Exceptions:
IOException When file creation fails.

Implements org.objectweb.jonas_lib.genbase.utils.ArchiveStorer.

Definition at line 104 of file DirStorer.java.

References org.objectweb.jonas_lib.genbase.utils.DirStorer.convertName(), org.objectweb.jonas_lib.genbase.utils.ArchiveStorer.getI18n(), and org.objectweb.jonas_lib.I18n.getMessage().

Referenced by org.objectweb.jonas_lib.genbase.utils.DirStorer.addFile().

Here is the call graph for this function:


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