org.koala.koalautil
Class SyncTextFileWriter

java.lang.Object
  |
  +--org.koala.koalautil.SyncTextFileWriter

public class SyncTextFileWriter
extends java.lang.Object

This file provides synchronized write access to different files. It handles the opening and writing of the files and provides methods for writing text lines on them


Method Summary
protected  void finalize()
          Destroys the current handler
static org.koala.koalautil.SyncTextFileWriter getInstance(java.lang.String path)
          Returns the current handler instance for a given file
 void writeLine(java.lang.String line)
          Writes a line of text on the file
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

writeLine

public void writeLine(java.lang.String line)
               throws ChainedException
Writes a line of text on the file

Parameters:
line - the line to write
Throws:
ChainedException - unspecified

getInstance

public static org.koala.koalautil.SyncTextFileWriter getInstance(java.lang.String path)
                                                          throws ChainedException
Returns the current handler instance for a given file

Parameters:
path - the path to the file to which this instance is associated
Returns:
the obtained instance
Throws:
ChainedException - unspecified

finalize

protected void finalize()
Destroys the current handler

Overrides:
finalize in class java.lang.Object