Package gda.device.temperature
Class DataFileWriter
java.lang.Object
gda.device.temperature.DataFileWriter
Handles data file opening, closing and writing.
-
Constructor Summary
ConstructorsConstructorDescriptionDataFileWriter(String filePrefix, String fileExtension) Create a data file writer. -
Method Summary
-
Constructor Details
-
DataFileWriter
Create a data file writer.- Parameters:
filePrefix- the file prefix, to be added before the run number.fileExtension- the file extension, to be added after the run number.
-
-
Method Details
-
open
public void open()Opens data file. -
write
Writes a string to the data file.- Parameters:
toWrite- the string to write
-
close
public void close()Closes data file -
getDataFileName
Get the current data filename. This may be null if not open.- Returns:
- the current data file name.
-