org.openmrs.module
Class ModuleFileParser

java.lang.Object
  extended by org.openmrs.module.ModuleFileParser

public class ModuleFileParser
extends java.lang.Object

This class will parse a file into an org.openmrs.module.Module object


Constructor Summary
ModuleFileParser(java.io.File moduleFile)
          Constructor
ModuleFileParser(java.io.InputStream inputStream)
          Convenience constructor to parse the given inputStream file into an omod.
 
Method Summary
 Module parse()
          Get the module
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleFileParser

public ModuleFileParser(java.io.File moduleFile)
Constructor

Parameters:
moduleFile - the module (jar)file that will be parsed

ModuleFileParser

public ModuleFileParser(java.io.InputStream inputStream)
Convenience constructor to parse the given inputStream file into an omod.
This copies the stream into a temporary file just so things can be parsed.

Parameters:
inputStream - the inputStream pointing to an omod file
Method Detail

parse

public Module parse()
             throws ModuleException
Get the module

Returns:
new module object
Throws:
ModuleException

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change