FileDocCategorySizeDatePackage
LogFile.javaAPI DocExample596Sun Dec 12 10:51:26 GMT 2004None

LogFile

public class LogFile extends Object

Fields Summary
private Writer
out
Constructors Summary
public LogFile(File f)

    FileWriter fw = new FileWriter(f);
    this.out = new BufferedWriter(fw);
  
Methods Summary
public voidclose()

    out.flush();
    out.close();
  
protected voidfinalize()

    try {
      this.close();
    }
    catch (IOException ex) {
    }
  
public voidwriteEntry(java.lang.String message)

    Date d = new Date();
    out.write(d.toString());
    out.write('\t");
    out.write(message);
    out.write("\r\n");