public class OutputDataFile
extends java.lang.Object
Constructor and Description |
---|
OutputDataFile(java.lang.String fname)
Creates an output stream from the specified file name.
|
OutputDataFile(java.lang.String fname,
boolean isAppend)
Creates an output stream from the specified file name.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the file.
|
java.lang.String |
getName()
Returns the file name.
|
boolean |
isAppend()
Returns true if data is appended to the existing file, false if it is not.
|
boolean |
isOpen()
Returns true if file has been opened for writing, false if it has not.
|
boolean |
open()
Opens the file for writing.
|
void |
println(double d) |
void |
println(int i) |
void |
println(java.lang.String s) |
java.lang.String |
toString() |
public OutputDataFile(java.lang.String fname)
public OutputDataFile(java.lang.String fname, boolean isAppend)
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isAppend()
public boolean isOpen()
public boolean open()
public void println(java.lang.String s)
public void println(double d)
public void println(int i)
public void close()