All Packages Class Hierarchy This Package Previous Next Index
Class eduni.simjava.Sim_outfile
java.lang.Object
|
+----eduni.simjava.Sim_outfile
- public class Sim_outfile
- extends Object
- implements Sim_output
The default trace output class, which implements the Sim_output
interface. This class implements output to a file called tracefile
in the current directory, and is used by default in full Java applications.
Note that it can't be used in applets, because they do not allow access
to files.
Updated for JDK1.1 to use PrintWriter not a PrintStream.
- See Also:
- Sim_output
-
Sim_outfile()
- Constructor
-
close()
- Closes the file
-
initialise()
- Attempts to open the file
-
println(String)
- Prints a trace line to the file
Sim_outfile
public Sim_outfile()
- Constructor
initialise
public void initialise()
- Attempts to open the file
println
public void println(String msg)
- Prints a trace line to the file
- Parameters:
- msg - The message to print
close
public void close()
- Closes the file
All Packages Class Hierarchy This Package Previous Next Index