|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Utils.FilesWriter
Class that defines a reader object for parameters files.
Field Summary | |
---|---|
protected java.lang.String |
myFileName
Name of the file used by the FilesWriter |
protected java.io.FileOutputStream |
myReportFileStream
FileOutputStream used by the FilesWriter |
protected java.io.PrintWriter |
myReportWriter
PrintWriter used by the FilesWriter |
protected int |
myTabIndex
Current tabulation index of the FilesWriter |
Constructor Summary | |
---|---|
FilesWriter()
Construct an empty FilesWriter |
|
FilesWriter(java.lang.String myFN)
Construct the FilesWriter |
|
FilesWriter(java.lang.String myDir,
java.lang.String myFN)
Construct the FilesWriter |
Method Summary | |
---|---|
void |
addIndent()
Add an indentation to the current tabulation index of the FilesWriter |
void |
close()
Close the files that the reports have been written. |
void |
flush()
Flushes the PrintWriter |
java.lang.String |
getFileName()
Get the Name of the file used by the FilesWriter |
java.io.FileOutputStream |
getReportFileStream()
Get the FileOutputStream used by the FilesWriter |
java.io.PrintWriter |
getReportWriter()
Get the PrintWriter used by the FilesWriter |
private int |
getTabIndex()
Get the Current tabulation index of the FilesWriter |
static void |
main(java.lang.String[] args)
A test routine |
void |
open()
Open the files that the reports will be written. |
java.io.PrintWriter |
out()
Return the PrintWriter if the FilesWriter |
void |
outPrint(java.lang.String S)
Print the String S in the opened file. |
void |
outPrintln(java.lang.String S)
Println the String S in the opened file. |
void |
outTabPrint(java.lang.String S)
Println the String S in the opened file. |
void |
outTabPrintln(java.lang.String S)
Println the String S in the opened file. |
private void |
setFileName(java.lang.String myFN)
Set the Name of the file used by the FilesWriter |
private void |
setReportFileStream(java.io.FileOutputStream myRFS)
Set the FileOutputStream used by the FilesWriter |
private void |
setReportWriter(java.io.PrintWriter myRW)
Set the PrintWriter used by the FilesWriter |
private void |
setTabIndex(int tabIndex)
Set the Current tabulation index of the FilesWriter |
void |
subIndent()
Sub an indentation to the current tabulation index of the FilesWriter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int myTabIndex
protected java.io.FileOutputStream myReportFileStream
protected java.io.PrintWriter myReportWriter
protected java.lang.String myFileName
Constructor Detail |
public FilesWriter()
public FilesWriter(java.lang.String myFN)
myFN
- Name of the file used by the FilesWriterpublic FilesWriter(java.lang.String myDir, java.lang.String myFN)
myDir
- Name of the directory used by the FilesWritermyFN
- Name of the file used by the FilesWriterMethod Detail |
private final void setTabIndex(int tabIndex)
private final int getTabIndex()
public final void addIndent()
public final void subIndent()
private final void setReportFileStream(java.io.FileOutputStream myRFS)
public final java.io.FileOutputStream getReportFileStream()
private final void setReportWriter(java.io.PrintWriter myRW)
public final java.io.PrintWriter getReportWriter()
private final void setFileName(java.lang.String myFN)
public final java.lang.String getFileName()
public void open()
public void close()
public void outPrint(java.lang.String S)
public void outPrintln(java.lang.String S)
public void outTabPrintln(java.lang.String S)
public void outTabPrint(java.lang.String S)
public void flush()
public java.io.PrintWriter out()
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |