|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjarify.JarFile
final class JarFile
This class warps a jar file.
It provides methods for reading the files containing in the jar file.
| Field Summary | |
|---|---|
private java.lang.String |
m_FileName
the path of the jar file in case of remote files, it is the path for the local, temporary file |
private JarManifest |
m_Manifest
the manifest related to this jar file |
private java.util.zip.ZipFile |
m_ZipFile
the jar file |
| Constructor Summary | |
|---|---|
JarFile(java.io.File file)
Constructor If an exception occurs, the jar file could not be opened and read. |
|
| Method Summary | |
|---|---|
boolean |
close()
Close the jar file. |
boolean |
fileExists(java.lang.String name)
Test if a file entry exists in the jar archive. |
java.util.Vector |
getAliasList()
|
JarFileEntry |
getFileByName(java.lang.String name)
Returns the JarFileEntry for the file with the given name. |
JarManifest |
getManifest()
Returns the mainfest. |
java.lang.String |
getName()
Returns the fully qualified name of the jar file. |
JarFileEntry |
getSignatureBlockFile(java.lang.String alias)
Returns the signature block file that maps to the given name |
java.util.Vector |
getSignatureBlockFiles(java.lang.String alias)
Returns the signature block files that maps to the given name |
JarSignatureFile |
getSignatureFile(java.lang.String alias)
Returns the signature file with the given alias. |
private void |
init()
Opens the jar file and read the manifest. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String m_FileName
private java.util.zip.ZipFile m_ZipFile
private JarManifest m_Manifest
| Constructor Detail |
|---|
public JarFile(java.io.File file)
throws java.util.zip.ZipException,
java.io.IOException,
java.lang.SecurityException
name - the path of the jar file
java.util.zip.ZipException
java.io.IOException
java.lang.SecurityException| Method Detail |
|---|
private void init()
throws java.io.IOException
java.io.IOException - if jar file could not be readpublic JarManifest getManifest()
public boolean fileExists(java.lang.String name)
name - the name of the file entry
public JarSignatureFile getSignatureFile(java.lang.String alias)
alias - the alias of the signature file
public JarFileEntry getSignatureBlockFile(java.lang.String alias)
alias - the alias of the signature block file
public java.util.Vector getSignatureBlockFiles(java.lang.String alias)
alias - the alias of the signature block file
public JarFileEntry getFileByName(java.lang.String name)
name - the name of the file relative to jar file
public java.lang.String getName()
public java.util.Vector getAliasList()
public boolean close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||