gov.virginia.dcjs.util
Class BufferedFileWriter

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.BufferedWriter
          extended bygov.virginia.dcjs.util.BufferedFileWriter
Direct Known Subclasses:
LogFile

public class BufferedFileWriter
extends java.io.BufferedWriter

Creates new, or opens existing, file of the specified name and * optionally appends new entries to the end.


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
BufferedFileWriter(java.lang.String name, boolean append)
          * Open the file at the specified location for writing.
 
Method Summary
 void writeln(java.lang.String line)
          Append the given line to the file followed by a new line.
 
Methods inherited from class java.io.BufferedWriter
close, flush, newLine, write, write, write
 
Methods inherited from class java.io.Writer
write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferedFileWriter

public BufferedFileWriter(java.lang.String name,
                          boolean append)
                   throws java.io.IOException
* Open the file at the specified location for writing. * @param name Absolute or relative path with file name * @param append True when the file is to be added to, false to replace.

Method Detail

writeln

public void writeln(java.lang.String line)
Append the given line to the file followed by a new line. * @param line Text line to add to file