org.inria.myriads.snoozeclient.statistics.results.writer
Class FileResultsWriter

java.lang.Object
  extended by org.inria.myriads.snoozeclient.statistics.results.writer.FileResultsWriter

public class FileResultsWriter
extends Object

File results writer.

Author:
Eugen Feller

Constructor Summary
FileResultsWriter(String fileName)
          Constructor of the writer.
 
Method Summary
 void closeFile()
          Closes the file.
 void writeData(String data)
          Write a line to the data file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileResultsWriter

public FileResultsWriter(String fileName)
                  throws IOException
Constructor of the writer.

Parameters:
fileName - File name to write data to
Throws:
IOException - I/O exception
Method Detail

writeData

public final void writeData(String data)
                     throws IOException
Write a line to the data file.

Parameters:
data - The data to write
Throws:
IOException - I/O exception

closeFile

public final void closeFile()
                     throws IOException
Closes the file.

Throws:
IOException


Copyright © 2012. All Rights Reserved.