BioLegato 0.5.7

org.biolegato.core.main
Class BLMain

java.lang.Object
  extended by org.biolegato.core.main.BLMain

public final class BLMain
extends java.lang.Object

The main program and generic function class.

This class is used to generate the main window, do all startup processing, and run the program. This class also contains all of the utility functions, and a wide assortment of utility classes.

Version:
0.5.7 1-Sept-2009
Author:
Graham Alvare, Brian Fristensky

Field Summary
static java.lang.String NAME
          This constant stores the program's name
 
Constructor Summary
BLMain()
           
 
Method Summary
static void error(java.lang.String message)
          Sends an error message to BioLegato's standard err.
static void error(java.lang.String message, java.lang.String location)
          Sends an error message to BioLegato's standard err.
static void main(java.lang.String[] args)
          Starts up BioLegato.
static void message(java.lang.String message)
          Sends a message to BioLegato's standard out.
static void message(java.lang.String message, java.lang.String location)
          Sends a message to BioLegato's standard out.
static java.lang.String readStream(java.io.BufferedReader reader)
          Reads the complete contents of a BufferedReader into a string.
static void warning(java.lang.String message)
          Sends an warning message to BioLegato's standard err.
static void warning(java.lang.String message, java.lang.String location)
          Sends an warning message to BioLegato's standard err.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
This constant stores the program's name

See Also:
Constant Field Values
Constructor Detail

BLMain

public BLMain()
Method Detail

main

public static void main(java.lang.String[] args)
Starts up BioLegato.

Parameters:
args - the command line arguments.

error

public static void error(java.lang.String message)
Sends an error message to BioLegato's standard err. Alias for error(message, null);

Parameters:
message - the error message to send.

error

public static void error(java.lang.String message,
                         java.lang.String location)
Sends an error message to BioLegato's standard err.

Parameters:
message - the error message to send.
location - the location the error occurred.

warning

public static void warning(java.lang.String message)
Sends an warning message to BioLegato's standard err. Alias for warning(message, null);

Parameters:
message - the warning message to send.

warning

public static void warning(java.lang.String message,
                           java.lang.String location)
Sends an warning message to BioLegato's standard err.

Parameters:
message - the warning message to send.
location - the location the error occurred.

message

public static void message(java.lang.String message)
Sends a message to BioLegato's standard out. Alias for message(message, null);

Parameters:
message - the message to send.

message

public static void message(java.lang.String message,
                           java.lang.String location)
Sends a message to BioLegato's standard out.

Parameters:
message - the message to send.
location - the location the message was sent from.

readStream

public static java.lang.String readStream(java.io.BufferedReader reader)
                                   throws java.io.IOException
Reads the complete contents of a BufferedReader into a string.

Parameters:
reader - the BufferedReader to read.
Returns:
the contents of the BufferedReader.
Throws:
java.io.IOException - throws any exceptions from the read operation.

BioLegato 0.5.7

Copyright © 2008-2009 University of Manitoba.