DBAbstract API Documentation

ro.raducora.utils.io
Class Write

java.lang.Object
  |
  +--ro.raducora.utils.io.Write

public class Write
extends java.lang.Object

Author:
Radu Coravu

Field Summary
static boolean DEBUG
          DEBUG Flag
static boolean EXCEPTION
          EXCEPTION Flag
 
Constructor Summary
Write()
           
 
Method Summary
static void exception(java.lang.Exception exception)
          Shortcut to write exception to error stream
static void It(java.lang.String it)
          Shortcut to write to console without new line
static void Line(java.lang.String line)
          Shortcut to write to console with new line
static void setDebugStream(java.io.PrintStream out)
          Set the debug stream
static void setErrorStream(java.io.PrintStream err)
          Set the error stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static boolean DEBUG
DEBUG Flag


EXCEPTION

public static boolean EXCEPTION
EXCEPTION Flag

Constructor Detail

Write

public Write()
Method Detail

setErrorStream

public static void setErrorStream(java.io.PrintStream err)
Set the error stream

Parameters:
err - The Error Stream to write exceptions to

setDebugStream

public static void setDebugStream(java.io.PrintStream out)
Set the debug stream

Parameters:
out - The Debug Stream to write exceptions to

Line

public static void Line(java.lang.String line)
Shortcut to write to console with new line

Parameters:
line - string to be written to stdout

It

public static void It(java.lang.String it)
Shortcut to write to console without new line

Parameters:
it - string to be written to stdout

exception

public static void exception(java.lang.Exception exception)
Shortcut to write exception to error stream

Parameters:
exception - exception to be written to stderr

DBAbstract API Documentation

© Copyright Radu Coravu 2002 - 2004.