Class MyWriter

java.lang.Object
  |
  +--MyWriter

public class MyWriter
extends java.lang.Object

A general purpose file writer, here used to generate the log file in log/

Author:
Pietro Terna

Field Summary
 java.io.File fileOut
           
 java.io.FileWriter out
           
 
Constructor Summary
MyWriter(java.lang.String fileName)
          the constructor, opening the file
 
Method Summary
 void close()
           
 void write(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileOut

public java.io.File fileOut

out

public java.io.FileWriter out
Constructor Detail

MyWriter

public MyWriter(java.lang.String fileName)
         throws java.io.IOException
the constructor, opening the file

Method Detail

write

public void write(java.lang.String s)
           throws java.io.IOException
java.io.IOException

close

public void close()
           throws java.io.IOException
java.io.IOException