TC Java
2009 Version

gov.nih.nlm.nls.tc.Util
Class Out

java.lang.Object
  extended by gov.nih.nlm.nls.tc.Util.Out

public class Out
extends java.lang.Object

This class performs the output related features.

History:

Version:
V-2009
Author:
NLM Lexical Systems Group

Constructor Summary
Out()
           
 
Method Summary
static java.lang.String GetOutString()
          Get the output String
static void Print(java.io.BufferedWriter outWriter, java.lang.String msg, boolean fileOutput, boolean toStringFlag)
          Print message to a designated output buffer
static void Println(java.io.BufferedWriter outWriter, java.lang.String msg, boolean fileOutput, boolean toStringFlag)
          Print message and append a linebreaker to a designated output buffer
static void Println(java.lang.String msg, boolean verbose)
          Print a message to standard output
static void ResetOutString()
          Reset the output string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Out

public Out()
Method Detail

Println

public static void Println(java.lang.String msg,
                           boolean verbose)
Print a message to standard output

Parameters:
msg - the message string to be printed
verbose - the verbose flag to print out the message

Print

public static void Print(java.io.BufferedWriter outWriter,
                         java.lang.String msg,
                         boolean fileOutput,
                         boolean toStringFlag)
                  throws java.io.IOException
Print message to a designated output buffer

Parameters:
outWriter - the designated outputs
msg - massage for printing out
toStringFlag - a boolean flag for sending output to a String
Throws:
java.io.IOException

Println

public static void Println(java.io.BufferedWriter outWriter,
                           java.lang.String msg,
                           boolean fileOutput,
                           boolean toStringFlag)
                    throws java.io.IOException
Print message and append a linebreaker to a designated output buffer

Parameters:
outWriter - the designated outputs
msg - massage for printing out
fileOutput - a boolean flag for sending the output to a file
toStringFlag - a boolean flag for sending output to a String
Throws:
java.io.IOException

ResetOutString

public static void ResetOutString()
Reset the output string


GetOutString

public static java.lang.String GetOutString()
Get the output String

Returns:
output string

TC Java
2009 Version

Submit a bug or feature

Copyright © 2009 National Library of Medicine