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
-
ZipFile()
- Creates a bucket with no content.
-
ZipFile(String)
- Creates a bucket with the content of a Zip file.
-
clone()
- Clones the Zip file.
-
getFileName()
- Gets the name of the Zip file.
-
putFile(String)
- Puts a file in the bucket.
-
putFile(String, String)
- Puts a file in the bucket.
-
save()
- Updates the Zip file.
-
saveAs(String)
- Writes the bucket to a Zip file.
-
setFileName(String)
- Sets the name of the Zip file.
ZipFile
public ZipFile()
- Creates a bucket with no content.
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.
setFileName
public void setFileName(String aFileName)
- Sets the name of the Zip file.
- Parameters:
- aFileName - a name of the Zip file.
getFileName
public String getFileName()
- Gets the name of the Zip file.
- Returns:
- the name of the Zip file.
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.
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.
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.
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.
clone
public synchronized Object clone()
- Clones the Zip file.
- Overrides:
- clone in class ZipBucket
All Packages Class Hierarchy This Package Previous Next Index