salsa.util
Class MyFileWriter

java.lang.Object
  extended by salsa.util.MyFileWriter

public class MyFileWriter
extends java.lang.Object

MyFileWriter writes a text to a file, using buffered writing methods.

Author:
Fabian

Constructor Summary
MyFileWriter(java.lang.String fileName)
          Constructor that takes the name of the file to be written to.
 
Method Summary
 void writeToFile(java.lang.String text)
          Writes the text into the file that has been set in the constructor.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyFileWriter

public MyFileWriter(java.lang.String fileName)
Constructor that takes the name of the file to be written to.

Parameters:
fileName -
Method Detail

writeToFile

public void writeToFile(java.lang.String text)
                 throws java.io.IOException
Writes the text into the file that has been set in the constructor.

Parameters:
text -
Throws:
java.io.IOException - if the text could not be written to the given file