|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.atomikos.util.JarArchive
public class JarArchive
Copyright © 2003, Atomikos. All rights reserved. A JAR file utility class.
| Constructor Summary | |
|---|---|
JarArchive(File stageFolder)
Create a new instance. |
|
| Method Summary | |
|---|---|
void |
add(File file)
Add a file to the stage folder. |
protected void |
add(File file,
File destination)
|
protected void |
addEntryToJar(JarOutputStream jarOut,
File entry)
|
void |
addJar(File jarFile)
Add a jar file to the stage folder. |
void |
addToMetaInf(File file)
Add a file to the META-INF directory for the jar. |
File |
createJar(String name,
File destinationFolder)
Create a new jar file containing everything that was added so far. |
File |
getStageFolder()
Get the stage folder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JarArchive(File stageFolder)
throws IOException
stageFolder - Where to place temporary files.
IOException - If stageFolder is not a directory.| Method Detail |
|---|
public File getStageFolder()
protected void add(File file,
File destination)
throws IOException
IOException
public void add(File file)
throws IOException
file - The file to add.
IOException - On IO errors.
public void addToMetaInf(File file)
throws IOException
file - The file to add. Only the file name will be taken into
account; any parent folders are ignored.
IOException - On error.
public void addJar(File jarFile)
throws IOException
jarFile - The jar file to add.
IOException - If the file is not a jar file, or
if it could not be added.
public File createJar(String name,
File destinationFolder)
throws IOException
name - The name of the archive file.destinationFolder - The destination for the archive file.
IOException - If the archive could not be created.
protected void addEntryToJar(JarOutputStream jarOut,
File entry)
throws IOException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||