All Packages Class Hierarchy This Package Previous Next Index
Class ORG.opengroup.jar.JarFile
java.lang.Object
|
+----ORG.opengroup.jar.Bucket
|
+----ORG.opengroup.jar.JarFile
- public class JarFile
- extends Bucket
Adds file operations to Bucket
JarFile()
- Creates a Bucket with no content.
JarFile(String)
- Creates a bucket with the content of a jar file.
clone()
- Creates a clone of this jarfile instance and
passes it back
putFile(String)
- Put a file in the bucket.
putFile(String, String)
- Put a file in the bucket.
save()
- Update the jar file.
saveAs(String)
- Write the bucket to a jar file.
JarFile
public JarFile()
- Creates a Bucket with no content.
JarFile
public JarFile(String pfileName) throws IOException, ZipException
- Creates a bucket with the content of a jar file.
- Parameters:
- pfileName - Name of jar file.
- Throws:
IOException
- May be thrown when
reading from the jar file.
- Throws:
ZipException
- May be thrown when
processing the contents of the
jar file.
saveAs
public void saveAs(String pfileName) throws IOException, ZipException
- Write the bucket to a jar file.
- Parameters:
- pfileName - Name of jar file.
- Throws:
IOException
- May be thrown when
writting to the jar file.
- Throws:
ZipException
- May be thrown when
processing the contents of the
jar file.
save
public void save() throws IOException, ZipException
- Update the jar file.
- Throws:
IOException
- May be thrown when
writting to the jar file.
- Throws:
ZipException
- May be thrown when
processing the contents of the
jar file.
putFile
public void putFile(String pfileName) throws IOException
- Put a file in the bucket.
- Parameters:
- pfileName - Name of the file to be put in the bucket.
- Throws:
IOException
- May be thrown when reading the file.
putFile
public void putFile(String pfileName,
String as) throws IOException
- Put a file in the bucket.
- Parameters:
- pfileName - Name of the file to be read.
- as - Name of the file added to the bucket.
- Throws:
IOException
- May be thrown when reading the file.
clone
public Object clone()
- Creates a clone of this jarfile instance and
passes it back
- Overrides:
- clone in class Bucket
All Packages Class Hierarchy This Package Previous Next Index