Java EE 5 SDK

com.sun.appserv.management.base
Class AMXDebug.WrapOutput

java.lang.Object
  extended by com.sun.appserv.management.base.AMXDebug.WrapOutput
All Implemented Interfaces:
DebugSink, Output
Enclosing class:
AMXDebug

public final class AMXDebug.WrapOutput
extends Object
implements Output

Internal class which wraps the Output so that debug may be dynamically enabled or disable without any users of the Output having to be aware of it.


Method Summary
 void close()
          Done with it, can be destroyed.
 boolean getDebug()
           
 void print(Object o)
          Output a message without a newline.
 void printDebug(Object o)
          Output a debug error message if getDebug() is currently true.
 void printError(Object o)
          Output a message to error output
 void println(Object o)
          Output a message with a newline.
 void reset()
           
 void setDebug(boolean debug)
          Change debug status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDebug

public boolean getDebug()

setDebug

public void setDebug(boolean debug)
Change debug status. If debug is enabled any subsequent debugging messages will be written to their outputs, creating files if necessary. If debug is disabled, all output to files ceases, and the files are closed.


print

public void print(Object o)
Description copied from interface: DebugSink
Output a message without a newline.

Specified by:
print in interface DebugSink
Specified by:
print in interface Output
Parameters:
o - the Object to output

println

public void println(Object o)
Description copied from interface: DebugSink
Output a message with a newline.

Specified by:
println in interface DebugSink
Specified by:
println in interface Output
Parameters:
o - the Object to output

printError

public void printError(Object o)
Description copied from interface: Output
Output a message to error output

Specified by:
printError in interface Output
Parameters:
o - the Object to output

printDebug

public void printDebug(Object o)
Description copied from interface: Output
Output a debug error message if getDebug() is currently true.

Specified by:
printDebug in interface Output
Parameters:
o - the Object to output

reset

public void reset()

close

public void close()
Description copied from interface: Output
Done with it, can be destroyed.

Specified by:
close in interface Output

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.