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

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

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JarStorer (J2EEArchive archive, File jar) throws GenBaseException
void store () 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 a Jar file.

Author:
Guillaume Sauthier

Definition at line 41 of file JarStorer.java.


Constructor & Destructor Documentation

org.objectweb.jonas_lib.genbase.utils.JarStorer.JarStorer J2EEArchive  archive,
File  jar
throws GenBaseException
 

Creates a new JarStorer object.

Parameters:
archive archive to be stored
jar outout jar file
Exceptions:
GenBaseException When cannot create output jar

Definition at line 56 of file JarStorer.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.JarStorer.addFile String  name  )  throws IOException [protected, virtual]
 

Add a file in Jar

Parameters:
name file name to be added
Exceptions:
IOException when filling fails.

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

Definition at line 94 of file JarStorer.java.

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

Here is the call graph for this function:

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

Convert a name from any format in Jar filename format

Parameters:
name filename to be converted
Returns:
converted filename

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

Definition at line 83 of file JarStorer.java.

Referenced by org.objectweb.jonas_lib.genbase.utils.JarStorer.addFile(), and org.objectweb.jonas_lib.genbase.utils.JarStorer.getOutputStream().

OutputStream org.objectweb.jonas_lib.genbase.utils.JarStorer.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 128 of file JarStorer.java.

References org.objectweb.jonas_lib.genbase.utils.JarStorer.convertName().

Here is the call graph for this function:

void org.objectweb.jonas_lib.genbase.utils.JarStorer.store  )  throws GenBaseException
 

Store the archive and close the streams.

Exceptions:
GenBaseException When Output Jar cannot be closed

Reimplemented from org.objectweb.jonas_lib.genbase.utils.ArchiveStorer.

Definition at line 108 of file JarStorer.java.

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

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:13:00 2005 for JOnAS by  doxygen 1.3.9.1