ca.infoway.messagebuilder.j5goodies
Class ManifestReader
java.lang.Object
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
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 |
ManifestReader
public ManifestReader()
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.