ca.infoway.messagebuilder.j5goodies
Class ManifestReader

Package class diagram package ManifestReader
java.lang.Object
  extended by ca.infoway.messagebuilder.j5goodies.ManifestReader

public class ManifestReader
extends Object

A class that can find the Manifest that corresponds to the jar that contains a particular class.

Author:
Intelliware Development

Constructor Summary
ManifestReader()
           
 
Method Summary
static Manifest read(Class<?> mainClass)
          Get the manifest that's contained in the jar that contains the given class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManifestReader

public ManifestReader()
Method Detail

read

public static Manifest read(Class<?> mainClass)
                     throws IOException

Get the manifest that's contained in the jar that contains the given class.

Parameters:
mainClass - - the class
Returns:
- the Manifest
Throws:
IOException - - if the manifest cannot be read.


Copyright © 2013. All Rights Reserved.