com.sparsity.dex.io
Class RowWriter

java.lang.Object
  extended by com.sparsity.dex.io.RowWriter
Direct Known Subclasses:
CSVWriter

public class RowWriter
extends java.lang.Object

RowWriter interface.

Common interface for those writers which dump the data from an string array.

It works as follows: perform as many write operations as necessary and call close once at the end. Once close is called no more write operations can be executed.

Check out the 'Data export' section in the DEX User Manual for more details on this.

Author:
Sparsity Technologies http://www.sparsity-technologies.com

Method Summary
 void close()
          Closes the writer.
 void write(StringList row)
          Writes the next row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

close

public void close()
           throws java.io.IOException,
                  java.lang.RuntimeException
Closes the writer.

Throws:
java.io.IOException - If the close fails.
java.lang.RuntimeException - null

write

public void write(StringList row)
           throws java.io.IOException,
                  java.lang.RuntimeException
Writes the next row.

Parameters:
row - [in] Row of data.
Throws:
java.io.IOException - If bad things happen during the write.
java.lang.RuntimeException - null