|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.generators.genbase.utils.ArchiveStorer
public abstract class ArchiveStorer
Store an Archive in compressed or uncompressed format
| Field Summary | |
|---|---|
static int |
MAX_BUFFER_SIZE
Buffer Size |
| Constructor Summary | |
|---|---|
ArchiveStorer(J2EEArchive archive)
Creates a new ArchiveStorer object. |
|
| Method Summary | |
|---|---|
protected abstract void |
addFile(String name)
add a file in saved archive |
protected abstract String |
convertName(String name)
convert a filename from unix to windows filename and reverse |
protected static void |
fill(InputStream is,
OutputStream os)
Fill an OutputStream with content from an InputStream |
J2EEArchive |
getArchive()
|
static I18n |
getI18n()
|
protected abstract OutputStream |
getOutputStream(String name)
Returns an OutputStream from the given name |
void |
setOut(String out)
|
void |
store()
Store the content of the contained archive. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_BUFFER_SIZE
| Constructor Detail |
|---|
public ArchiveStorer(J2EEArchive archive)
archive - archive to be saved| Method Detail |
|---|
protected static void fill(InputStream is,
OutputStream os)
throws IOException
is - InputStreamos - OutputStream
IOException - When filling fails
protected abstract void addFile(String name)
throws IOException
name - file name
IOException - When save failsprotected abstract String convertName(String name)
name - name to be converted
protected abstract OutputStream getOutputStream(String name)
throws IOException
name - the filename we want to open/create
IOException - When OS cannot be created
public void store()
throws GenBaseException
GenBaseException - When cannot add all filespublic static I18n getI18n()
public J2EEArchive getArchive()
public void setOut(String out)
out - The out to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||