|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jarify.JarFileEntry jarify.JarManifest
class JarManifest
The Manifest of a JarFile. It contains of Manifest Entries.
Nested Class Summary | |
---|---|
private class |
JarManifest.EntryData
This is an entry in the manifest. |
Field Summary | |
---|---|
protected java.lang.String |
contentStrRaw
the content of the manifest as String |
private java.util.Hashtable |
entries
|
private java.util.Vector |
fileNameList
|
protected java.lang.String |
newLine
the character(s) of the newline used in this file |
Fields inherited from class jarify.JarFileEntry |
---|
name |
Constructor Summary | |
---|---|
JarManifest(long size,
java.io.InputStream stream)
Constructor |
Method Summary | |
---|---|
java.lang.String |
getDigest(JarFileEntry file,
java.lang.String digestID)
Returns the digest for a file. |
java.lang.String |
getDigest(java.lang.String fileName,
java.lang.String digestID)
Returns the digest for a file. |
java.util.Vector |
getDigestList(java.lang.String fileName)
|
byte[] |
getEntry(java.lang.String fileName)
Get the Manifest Entry of a file. |
java.util.Vector |
getFileNames()
Returns all file names as String. |
protected void |
init()
Reads the content of the file into a string variable. |
private void |
parse()
|
Methods inherited from class jarify.JarFileEntry |
---|
getContent, getName, getSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Hashtable entries
private java.util.Vector fileNameList
protected java.lang.String contentStrRaw
protected java.lang.String newLine
Constructor Detail |
---|
public JarManifest(long size, java.io.InputStream stream)
size
- The size of the Manifest file.stream
- An InputStream that is used for reading.Method Detail |
---|
protected void init()
private void parse()
public java.util.Vector getFileNames()
public java.lang.String getDigest(JarFileEntry file, java.lang.String digestID)
file
- a JarFileEntrydigestID
- Something like SHA1-Digest: or MD5-Digist:
JarContants
public java.lang.String getDigest(java.lang.String fileName, java.lang.String digestID)
fileName
- the file name of the JarFileEntrydigestID
- Something like SHA1-Digest: or MD5-Digist:
JarContants
public byte[] getEntry(java.lang.String fileName)
fileName
-
public java.util.Vector getDigestList(java.lang.String fileName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |