|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.analysis.DataFileWriter
public class DataFileWriter
Writes objects to a file via their toString() method. DataFileWriter is used by recording objects to write data to a file.
| Constructor Summary | |
|---|---|
DataFileWriter(java.lang.String fileName,
DataFileHeader dfHeader)
Constructs a DataFileWriter to write to the specified file using the specified DataFileHeader. |
|
| Method Summary | |
|---|---|
void |
setBlockHeader(java.lang.String blockHeader)
Sets a block header. |
void |
writeToFile(java.lang.Object obj)
Writes the specifed object out to a file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataFileWriter(java.lang.String fileName,
DataFileHeader dfHeader)
filename - the name of the file to write the data out to.dfHeader - the DataFileHeader for this file.| Method Detail |
|---|
public void setBlockHeader(java.lang.String blockHeader)
setBlockHeader in interface BlockFileWriterblockHeader - the header for a block of datapublic void writeToFile(java.lang.Object obj)
writeToFile in interface BlockFileWriterobj - the object whose String representation will be written to
a file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||