All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.archiveaccessor.filestore.ZipFile

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

public class ZipFile
extends ZipBucket
The ZipFile class adds file operations to ZIP bucket


Constructor Index

 o ZipFile()
Creates a bucket with no content.
 o ZipFile(String)
Creates a bucket with the content of a Zip file.

Method Index

 o clone()
Clones the Zip file.
 o getFileName()
Gets the name of the Zip file.
 o putFile(String)
Puts a file in the bucket.
 o putFile(String, String)
Puts a file in the bucket.
 o save()
Updates the Zip file.
 o saveAs(String)
Writes the bucket to a Zip file.
 o setFileName(String)
Sets the name of the Zip file.

Constructors

 o ZipFile
 public ZipFile()
Creates a bucket with no content.

 o ZipFile
 public ZipFile(String pfileName) throws IOException, ZipException
Creates a bucket with the content of a Zip file.

Parameters:
pfileName - name of zip file.
Throws: IOException
may be thrown when reading from the Zip file.
Throws: ZipException
may be thrown when processing the contents of the Zip file.

Methods

 o setFileName
 public void setFileName(String aFileName)
Sets the name of the Zip file.

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

Returns:
the name of the Zip file.
 o saveAs
 public void saveAs(String pfileName) throws IOException, ZipException
Writes the bucket to a Zip file.

Parameters:
pfileName - name of Zip file.
Throws: IOException
may be thrown when writting to the Zip file.
Throws: ZipException
may be thrown when processing the contents of the Zip file.
 o save
 public void save() throws IOException, ZipException
Updates the Zip file.

Throws: IOException
may be thrown when writting to the Zip file.
Throws: ZipException
may be thrown when processing the contents of the Zip 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 Zip file.

Overrides:
clone in class ZipBucket

All Packages  Class Hierarchy  This Package  Previous  Next  Index