Class NamingUtils
java.lang.Object
com.sun.corba.se.impl.naming.cosnaming.NamingUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanDebug flag which must be true for debug streams to be created and dprint output to be generated.static PrintStreamThe debug printstream.static PrintStreamThe error printstream. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidPrints the message to the debug stream if debugging is enabled.static voidPrints the message to the error stream (System.err is default).static voidmakeDebugStream(File logFile) Create a debug print stream to the supplied log file.static voidmakeErrStream(File errFile) Create a error print stream to the supplied file.static voidPrints the stacktrace of the supplied exception to the error stream.
-
Field Details
-
debug
public static boolean debugDebug flag which must be true for debug streams to be created and dprint output to be generated. -
debugStream
The debug printstream. -
errStream
The error printstream.
-
-
Method Details
-
dprint
Prints the message to the debug stream if debugging is enabled.- Parameters:
msg- the debug message to print.
-
errprint
Prints the message to the error stream (System.err is default).- Parameters:
msg- the error message to print.
-
printException
Prints the stacktrace of the supplied exception to the error stream.- Parameters:
e- any Java exception.
-
makeDebugStream
Create a debug print stream to the supplied log file.- Parameters:
logFile- the file to which debug output will go.- Throws:
IOException- thrown if the file cannot be opened for output.
-
makeErrStream
Create a error print stream to the supplied file.- Parameters:
logFile- the file to which error messages will go.- Throws:
IOException- thrown if the file cannot be opened for output.
-