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


Constructor Index

 o JarFile()
Creates a Bucket with no content.
 o JarFile(String)
Creates a bucket with the content of a jar file.

Method Index

 o clone()
Creates a clone of this jarfile instance and passes it back
 o putFile(String)
Put a file in the bucket.
 o putFile(String, String)
Put a file in the bucket.
 o save()
Update the jar file.
 o saveAs(String)
Write the bucket to a jar file.

Constructors

 o JarFile
public JarFile()
Creates a Bucket with no content.

 o 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.

Methods

 o 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.
 o 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.
 o 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.
 o 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.
 o 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