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
private  List<String> _classPaths
           
private  String _mainClass
           
private  String _rawManifest
           
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
 void setManifestContents(String rawManifest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_classPaths

private List<String> _classPaths

_mainClass

private String _mainClass

_rawManifest

private String _rawManifest

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 -

setManifestContents

public void setManifestContents(String rawManifest)

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