|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.appserv.management.util.misc.FileOutput
public final class FileOutput
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 |
---|
public FileOutput(File f)
public FileOutput(File f, boolean append)
Method Detail |
---|
public void print(Object o)
DebugSink
print
in interface DebugSink
print
in interface Output
o
- the Object to outputpublic void println(Object o)
DebugSink
println
in interface DebugSink
println
in interface Output
o
- the Object to outputpublic void printError(Object o)
Output
printError
in interface Output
o
- the Object to outputpublic boolean getDebug()
public void printDebug(Object o)
Output
printDebug
in interface Output
o
- the Object to outputpublic void close()
Output
close
in interface Output
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.