iaik.tc.utils.logging
Class LogFileOutputHandler

java.lang.Object
  extended by iaik.tc.utils.logging.LogFileOutputHandler
All Implemented Interfaces:
LogGenericOutputHandler

public class LogFileOutputHandler
extends java.lang.Object
implements LogGenericOutputHandler

This class implements an IOutputStream which writes to a file.


Constructor Summary
LogFileOutputHandler(java.lang.String fileName)
          Default constructor
 
Method Summary
 void printLine(java.lang.String line)
          writes the content to the file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFileOutputHandler

public LogFileOutputHandler(java.lang.String fileName)
Default constructor

Parameters:
fileName - name of the file used for logging
Method Detail

printLine

public void printLine(java.lang.String line)
writes the content to the file. if the file could not be created or opened for writing, this method does nothing

Specified by:
printLine in interface LogGenericOutputHandler
Parameters:
line - line to print