edu.jhu.tmaj.util.file
Interface FlatFileSyncer
- All Known Implementing Classes:
- FlatFileSyncerImpl
public interface FlatFileSyncer
Provides a way to read and write a tableArray object to a delimited file.
Field Summary |
static java.lang.String |
TAB
|
Method Summary |
TableArray |
readFlatFile(java.io.File file,
java.lang.String delimiter)
Reads the supplied File and returns a TableArray based upon the file data. |
void |
writeFlatFile(TableArray tableArray,
java.io.File file,
java.lang.String delimiter)
Writes the supplied tableArray to the supplied file using the supplied delimiter
to separate columns. |
TAB
static final java.lang.String TAB
- See Also:
- Constant Field Values
writeFlatFile
void writeFlatFile(TableArray tableArray,
java.io.File file,
java.lang.String delimiter)
- Writes the supplied tableArray to the supplied file using the supplied delimiter
to separate columns. Any null entries are written as empty strings.
readFlatFile
TableArray readFlatFile(java.io.File file,
java.lang.String delimiter)
- Reads the supplied File and returns a TableArray based upon the file data.
Any empty strings are entered into the TableArray as null.