|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gargoylesoftware.base.trace.TraceController
A controller object for the tracing mechanism.
Method Summary | |
protected void |
assertNotNull(String fieldName,
Object fieldValue)
Verify that the specified value is not null. |
void |
close()
Close down the debugging facilities in preparation for application shutdown. |
TraceChannel |
getDefaultChannel()
Return the default channel |
PrintStream |
getRealSystemErr()
Return the real stream that corresponds to the console for System.err. |
PrintStream |
getRealSystemOut()
Return the real stream that corresponds to the console for System.out. |
boolean |
isBufferingEnabled()
Return true if buffering is enabled. |
boolean |
isErrRedirected()
Return true if System.err has been redirected to print through Trace.println |
boolean |
isOutRedirected()
Return true if System.out has been redirected to print through Trace.println |
void |
setBufferingEnabled(boolean enabled)
Shutdown the tracing thread and flush the buffers. |
void |
setDefaultChannel(TraceChannel channel)
Set the default channel. |
void |
setErrRedirected(boolean redirected)
Specify whether or not System.err should be redirected to print through Trace.println |
void |
setOutRedirected(boolean redirected)
Specify whether or not System.out should be redirected to print through Trace.println |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void setBufferingEnabled(boolean enabled)
enabled
- true if buffering is to be enabled.public boolean isBufferingEnabled()
public void setOutRedirected(boolean redirected)
redirected
- true if System.out should be redirected.public boolean isOutRedirected()
public PrintStream getRealSystemOut()
public void setErrRedirected(boolean redirected)
redirected
- true if System.err should be redirected.public boolean isErrRedirected()
public PrintStream getRealSystemErr()
public void close()
public void setDefaultChannel(TraceChannel channel)
channel
- the new channel.public TraceChannel getDefaultChannel()
protected final void assertNotNull(String fieldName, Object fieldValue) throws DetailedNullPointerException
fieldName
- The name of the field to checkfieldValue
- The value of the field to check
DetailedNullPointerException
- If fieldValue is null
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |