QJCC homepage

biz.chitec.quarterback.util
Class ManifestReader

java.lang.Object
  extended bybiz.chitec.quarterback.util.ManifestReader

public class ManifestReader
extends java.lang.Object

Access methods for JAR file manifests. This static class contains some methods to access the manifesto in the JAR file.

Version:
$Id: e749d2f821c6d0a9ec372f4ee51eb2d2407253d4 $
Author:
Dirk Hillbrecht 2000, chitec/Dirk Hillbrecht 2000. Distributed under the terms of the GNU LGPL.

Field Summary
private static java.lang.String MANIFESTNAME
           
 
Constructor Summary
private ManifestReader()
           
 
Method Summary
static byte[] getMD5Digest(java.lang.String infile)
          returns a digest over the manifesto.
static EDate getTimestamp(java.lang.String infile)
          returns timestamp entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MANIFESTNAME

private static final java.lang.String MANIFESTNAME
See Also:
Constant Field Values
Constructor Detail

ManifestReader

private ManifestReader()
Method Detail

getTimestamp

public static EDate getTimestamp(java.lang.String infile)
                          throws java.io.IOException
returns timestamp entry. The timestamp entry is a non-standard-extension which is available e.g. in the newer EBuS JAR files. It contains the date when the JAR was created.

Throws:
java.io.IOException

getMD5Digest

public static byte[] getMD5Digest(java.lang.String infile)
                           throws java.io.IOException
returns a digest over the manifesto. This digest can be used as fast-and-simple check whether the file has changed or not.

Throws:
java.io.IOException

QJCC homepage