Java EE 5 SDK

com.sun.appserv.management.util.misc
Class FileOutput

java.lang.Object
  extended by com.sun.appserv.management.util.misc.FileOutput
All Implemented Interfaces:
DebugSink, Output

public final class FileOutput
extends Object
implements Output

Directs output to a file. Lazy initialization; the file is not actually opened until output is sent.


Constructor Summary
FileOutput(File f)
           
FileOutput(File f, boolean append)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileOutput

public FileOutput(File f)

FileOutput

public FileOutput(File f,
                  boolean append)
Method Detail

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

getDebug

public boolean getDebug()

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

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.