ProgramixGenericLib v5.0.1

com.programix.thread
Class LineLogger.ConsoleOutput

java.lang.Object
  extended by com.programix.thread.LineLogger.ConsoleOutput
All Implemented Interfaces:
LineLogger.Output
Enclosing class:
LineLogger

public static class LineLogger.ConsoleOutput
extends Object
implements LineLogger.Output

An implementation of LineLogger.Output that just sends the output to the console (System.out). This is an singlton as there is no need for more than one.

Author:
Paul Hyde

Method Summary
static LineLogger.ConsoleOutput getInstance()
          Returns the one and only instance.
 void out(String msg)
          Write out a partial line—without a newline.
 void outln(String msg)
          Write out a full line—or complete an already partially written line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LineLogger.ConsoleOutput getInstance()
Returns the one and only instance.


out

public void out(String msg)
Description copied from interface: LineLogger.Output
Write out a partial line—without a newline.

Specified by:
out in interface LineLogger.Output

outln

public void outln(String msg)
Description copied from interface: LineLogger.Output
Write out a full line—or complete an already partially written line.

Specified by:
outln in interface LineLogger.Output

ProgramixGenericLib v5.0.1

Copyright © 2001-2009 Programix Incorporated. All rights reserved. ProgramixGenericLib is free and is OSI Certified Open Source Software under the BSD license.