de.pado.dv
Class Logfile

java.lang.Object
  extended by de.pado.dv.Logfile

public class Logfile
extends java.lang.Object

This class creates a logfile to which program output can be sent, such as warnings, errors and status messages.


Constructor Summary
Logfile(java.lang.String filename)
          Opens a new logfile at the position filename.
 
Method Summary
 void close()
          Closes logfile.
 void println(java.lang.String s)
          Writes a string to the logfile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logfile

public Logfile(java.lang.String filename)
        throws java.io.IOException
Opens a new logfile at the position filename.

Throws:
java.io.IOException
Method Detail

println

public void println(java.lang.String s)
             throws java.io.IOException
Writes a string to the logfile

Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Closes logfile. This method must be called at the end of the program to force emptying the buffer into the file.

Throws:
java.io.IOException