Last Site Update: 18 January 2010

GWAP API

Class

   java.lang.Object
     extended byHumanComputation.GWAP.Log
   public abstract class Log
   extends java.lang.Object

This class represents the log system of a GWAP system.

Constructor

  • Log

    public Log() Creates an empty log system.

Method

protected
java.io.BuggeredWriter
getBufferedWriter ( )
Get the buffered writer.
protected voidsetBufferedWriter (java.io.BufferedWriter bw)
Set the buffered writer.
abstract voidwrite (java.lang.String s)
Write a string to log file.
abstract voidwriteLine (java.lang.String s)
Write a line to log file.

Method Detail

  • getBufferedWriter

    protected final java.io.BufferedWriter getBufferedWriter()

    Get the buffered writer. (This method cannot be overridden.)

      Return -
      the bubbered writer of this log system

     

  • setBufferedWriter

    protected final void setBufferedWriter(java.io.BufferedWriter bw)

    Set the buffer writer. (This method must be overridden.)

      Parameter -
      bw - a buffered writer.

     

  • write

    public abstract void write(java.lang.String s)

    Write the string s to log file. (This method must be overridden.)

      Parameters -
      s - the string will be written to log file

     

  • writeLine

    public abstract void writeLine(java.lang.String s)

    Write a line s to log file (This method must be overridden.)

      Parameter -
      s - the string that will be written to log file