public class TraceController extends Object
Modifier and Type | Method and Description |
---|---|
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
|
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 checkDetailedNullPointerException
- If fieldValue is nullCopyright © 1998–2014 Gargoyle Software Inc.. All rights reserved.