Package org.glassfish.admin.amx.util
Class FileOutput
- java.lang.Object
-
- org.glassfish.admin.amx.util.FileOutput
-
-
Constructor Summary
Constructors Constructor Description FileOutput(File f)
FileOutput(File f, boolean append)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 outputvoid
println(Object o)
Output a message with a newline.
-
-
-
Method Detail
-
print
public void print(Object o)
Description copied from interface:Output
Output a message without a newline.
-
println
public void println(Object o)
Description copied from interface:Output
Output a message with a newline.
-
printError
public void printError(Object o)
Description copied from interface:Output
Output a message to error output- Specified by:
printError
in interfaceOutput
- 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 interfaceOutput
- Parameters:
o
- the Object to output
-
-