edu.northwestern.at.wordhoard.tools.martin
Class MartinUtils

java.lang.Object
  extended by edu.northwestern.at.wordhoard.tools.martin.MartinUtils

public class MartinUtils
extends java.lang.Object

Martin utilities.


Constructor Summary
MartinUtils()
           
 
Method Summary
static void emsg(java.lang.String msg)
          Issues an error message.
static java.sql.Connection getConnection()
          Gets a connection to Martin's database.
static java.io.PrintWriter openOutputFile(java.lang.String outPath)
          Opens the output file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MartinUtils

public MartinUtils()
Method Detail

emsg

public static void emsg(java.lang.String msg)
Issues an error message.

Parameters:
msg - Error message.
Throws:
Err

getConnection

public static java.sql.Connection getConnection()
                                         throws java.lang.Exception
Gets a connection to Martin's database.

Returns:
Connection to Martin's database.
Throws:
java.lang.Exception

openOutputFile

public static java.io.PrintWriter openOutputFile(java.lang.String outPath)
                                          throws java.lang.Exception
Opens the output file.

Parameters:
outPath - Path to output file.
Returns:
File opened for writing.
Throws:
java.lang.Exception