edu.rice.cs.util.jar
Class ManifestWriter

java.lang.Object
  extended by edu.rice.cs.util.jar.ManifestWriter

public class ManifestWriter
extends Object

Writes manifest objects. Useful for creating Manifest files without writing them to files.


Field Summary
static Manifest DEFAULT
           
 
Constructor Summary
ManifestWriter()
          Create a new manifest file
 
Method Summary
 void addClassPath(String path)
          Add a class path to the Manifest
protected  InputStream getInputStream()
          Get an input stream to the contents of the manifest file
 Manifest getManifest()
          Get the Manifest object that this object created.
 void setMainClass(String mainClass)
          Set the main class of the Manifest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final Manifest DEFAULT
Constructor Detail

ManifestWriter

public ManifestWriter()
Create a new manifest file

Method Detail

addClassPath

public void addClassPath(String path)
Add a class path to the Manifest

Parameters:
path - the path to be added

setMainClass

public void setMainClass(String mainClass)
Set the main class of the Manifest

Parameters:
mainClass -

getInputStream

protected InputStream getInputStream()
Get an input stream to the contents of the manifest file

Returns:
an InputStream whose contents are the contents of the Manifest file

getManifest

public Manifest getManifest()
Get the Manifest object that this object created.

Returns:
the Manifest that this builder created