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