All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iBus.LogRedirect

java.lang.Object
   |
   +----java.io.Writer
           |
           +----java.io.PrintWriter
                   |
                   +----iBus.LogRedirect

public class LogRedirect
extends PrintWriter
To redirect the Java output and error streams to a bus channel. java.lang.System.setOut() and java.lang.System.setErr() are called with an instance of LogRedirect. Posting format: 0: String: log message.


Constructor Index

 o LogRedirect(iBusURL)
Create a PrintStream that redirects output to a bus channel.

Method Index

 o println(String)
Overwrites PrintStream.println.

Constructors

 o LogRedirect
 public LogRedirect(iBusURL channel)
Create a PrintStream that redirects output to a bus channel.

Parameters:
channel - the iBus channel to direct this stream to.

Methods

 o println
 public void println(String str)
Overwrites PrintStream.println. Sends the string to the iBus channel the LogRedirect object was created for.

Parameters:
str - the string to log
Overrides:
println in class PrintWriter

All Packages  Class Hierarchy  This Package  Previous  Next  Index