All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.archiveaccessor.filestore.JarFile

java.lang.Object
   |
   +----com.ibm.archiveaccessor.filestore.ZipBucket
           |
           +----com.ibm.archiveaccessor.filestore.JarBucket
                   |
                   +----com.ibm.archiveaccessor.filestore.JarFile

public class JarFile
extends JarBucket
The JarFile class adds file operations to Jar 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()
Clones the jar file.
 o getFileName()
Gets the name of the Jar file.
 o putFile(String)
Puts a file in the bucket.
 o putFile(String, String)
Puts a file in the bucket.
 o save()
Update the Jar file.
 o saveAs(String)
Write the bucket to a Jar file.
 o setFileName(String)
Sets the name of the 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 setFileName
 public void setFileName(String aFileName)
Sets the name of the Jar file.

Parameters:
aFileName - a name of the Jar file.
 o getFileName
 public String getFileName()
Gets the name of the Jar file.

Returns:
the name of the Jar file.
 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
Puts 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
Puts 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 synchronized Object clone()
Clones the jar file.

Overrides:
clone in class JarBucket

All Packages  Class Hierarchy  This Package  Previous  Next  Index