Methods Summary |
---|
public void | close()
if ( mOut != null )
{
try
{
mOut.close();
}
finally
{
mOut = null;
}
}
|
public boolean | getDebug()
lazyInit();
return( false );
|
private void | lazyInit()
if ( mOut == null ) synchronized( this )
{
if ( mOut == null )
{
try
{
if ( (! mAppend) && mFile.exists() )
{
mFile.delete();
}
mOut = new PrintStream( new FileOutputStream( mFile, mAppend) );
}
catch( Exception e )
{
// don't use System.out/err; possible infinite recursion
throw new RuntimeException( "Can't create file: " + mFile +
", exception = " + e );
}
}
}
|
public void | print(java.lang.Object o)
lazyInit();
mOut.print( o.toString() );
|
public void | printDebug(java.lang.Object o)
lazyInit();
println( "DEBUG: " + o );
|
public void | printError(java.lang.Object o)
lazyInit();
println( "ERROR: " + o );
|
public void | println(java.lang.Object o)
lazyInit();
mOut.println( o.toString() );
|