|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.generators.genbase.utils.ArchiveStorer org.ow2.jonas.generators.genbase.utils.JarStorer
public class JarStorer
Store a J2EEArchive in a Jar file.
Field Summary |
---|
Fields inherited from class org.ow2.jonas.generators.genbase.utils.ArchiveStorer |
---|
MAX_BUFFER_SIZE |
Constructor Summary | |
---|---|
JarStorer(J2EEArchive archive,
File jar)
Creates a new JarStorer object. |
Method Summary | |
---|---|
protected void |
addFile(String name)
Add a file in Jar |
protected String |
convertName(String name)
Convert a name from any format in Jar filename format |
protected OutputStream |
getOutputStream(String name)
returns the OuputStream corresponding to the given filename. |
void |
store()
Store the archive and close the streams. |
Methods inherited from class org.ow2.jonas.generators.genbase.utils.ArchiveStorer |
---|
fill, getArchive, getI18n, setOut |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JarStorer(J2EEArchive archive, File jar) throws GenBaseException
archive
- archive to be storedjar
- outout jar file
GenBaseException
- When cannot create output jarMethod Detail |
---|
protected String convertName(String name)
convertName
in class ArchiveStorer
name
- filename to be converted
protected void addFile(String name) throws IOException
addFile
in class ArchiveStorer
name
- file name to be added
IOException
- when filling fails.public void store() throws GenBaseException
store
in class ArchiveStorer
GenBaseException
- When Output Jar cannot be closedprotected OutputStream getOutputStream(String name) throws IOException
getOutputStream
in class ArchiveStorer
name
- filename to create
IOException
- When file creation fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |