edu.jhu.tmaj.util.file
Class FlatFileSyncerImpl

java.lang.Object
  extended by edu.jhu.tmaj.util.file.FlatFileSyncerImpl
All Implemented Interfaces:
FlatFileSyncer, java.io.Serializable

public class FlatFileSyncerImpl
extends java.lang.Object
implements FlatFileSyncer, java.io.Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface edu.jhu.tmaj.util.file.FlatFileSyncer
TAB
 
Constructor Summary
FlatFileSyncerImpl()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatFileSyncerImpl

public FlatFileSyncerImpl()
Method Detail

readFlatFile

public TableArray readFlatFile(java.io.File file,
                               java.lang.String delimiter)
Description copied from interface: FlatFileSyncer
Reads the supplied File and returns a TableArray based upon the file data. Any empty strings are entered into the TableArray as null.

Specified by:
readFlatFile in interface FlatFileSyncer

writeFlatFile

public void writeFlatFile(TableArray tableArray,
                          java.io.File file,
                          java.lang.String delimiter)
Description copied from interface: FlatFileSyncer
Writes the supplied tableArray to the supplied file using the supplied delimiter to separate columns. Any null entries are written as empty strings.

Specified by:
writeFlatFile in interface FlatFileSyncer