blrevcomp
Class BufferedTextOutputFile

java.lang.Object
  extended by blrevcomp.BufferedTextOutputFile

public class BufferedTextOutputFile
extends java.lang.Object

Types and methods for safely opening or closing an output file for writing lines of text.


Field Summary
 java.io.BufferedWriter BW
           
 java.io.File F
           
 java.io.FileWriter FW
           
 
Constructor Summary
BufferedTextOutputFile()
           
 
Method Summary
 void write(java.lang.String S)
          Write a string to a file
 void writeChar(char CH)
          Write a character to a file.
 void writeChar(java.lang.Character CH)
           
 void writeln(java.lang.String S)
          Write a line to a file, terminated by a newline character
 boolean WriteOkay(java.lang.String S)
          Open file and create FileWriter and BufferedWriter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

F

public java.io.File F

FW

public java.io.FileWriter FW

BW

public java.io.BufferedWriter BW
Constructor Detail

BufferedTextOutputFile

public BufferedTextOutputFile()
Method Detail

WriteOkay

public boolean WriteOkay(java.lang.String S)
Open file and create FileWriter and BufferedWriter.

Parameters:
S - String containing name of file to be opened

writeChar

public void writeChar(char CH)
Write a character to a file.


writeChar

public void writeChar(java.lang.Character CH)

write

public void write(java.lang.String S)
Write a string to a file


writeln

public void writeln(java.lang.String S)
Write a line to a file, terminated by a newline character