|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--chn.util.FileOutput
| Constructor Summary | |
FileOutput(java.lang.String fileName)
Opens the given file for writing. |
|
FileOutput(java.lang.String fileName,
java.lang.String mode)
If mode = "append" then this constructor opens the given file so that calls to print methods will append information to any existing information in the file. |
|
| Method Summary | |
void |
close()
Close the input file. |
void |
print(boolean bool)
print the boolean to the file |
void |
print(char ch)
print the character to the file |
void |
print(double val)
print the double to the file |
void |
print(int num)
print the integer to the file |
void |
print(java.lang.String str)
print the String to the file |
void |
println()
print a newline to the file |
void |
println(boolean bool)
print the boolean to the file, followed by a newline |
void |
println(char ch)
print the character to the file, followed by a newline |
void |
println(double val)
print the double to the file, followed by a newline |
void |
println(int num)
print the integer to the file, followed by a newline |
void |
println(java.lang.String str)
print the String to the file, followed by a newline |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileOutput(java.lang.String fileName)
public FileOutput(java.lang.String fileName,
java.lang.String mode)
| Method Detail |
public void close()
public void print(int num)
public void print(double val)
public void print(java.lang.String str)
public void print(boolean bool)
public void print(char ch)
public void println()
public void println(int num)
public void println(double val)
public void println(java.lang.String str)
public void println(boolean bool)
public void println(char ch)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||