net.sf.jmatchparser.util.csv
Class CSVReaderBuilder

java.lang.Object
  extended by net.sf.jmatchparser.util.csv.AbstractCSVWriter
      extended by net.sf.jmatchparser.util.csv.CSVReaderBuilder

public class CSVReaderBuilder
extends AbstractCSVWriter

An AbstractCSVWriter where you can write records into and then call the toReader() method to build an AbstractCSVReader that can read exactly these records.


Constructor Summary
CSVReaderBuilder()
           
 
Method Summary
 void close()
          Close this CSV writer.
 void flush()
          Flush this CSV writer.
 void reset()
          Reset this builder.
 AbstractCSVReader toReader()
          Create a CSV reader from the records written to this builder and reset it.
 void write(String... record)
          Write a record (line) into this CSV file.
 
Methods inherited from class net.sf.jmatchparser.util.csv.AbstractCSVWriter
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVReaderBuilder

public CSVReaderBuilder()
Method Detail

write

public void write(String... record)
           throws IOException
Description copied from class: AbstractCSVWriter
Write a record (line) into this CSV file.

Specified by:
write in class AbstractCSVWriter
Throws:
IOException

flush

public void flush()
           throws IOException
Description copied from class: AbstractCSVWriter
Flush this CSV writer.

Specified by:
flush in class AbstractCSVWriter
Throws:
IOException

close

public void close()
           throws IOException
Description copied from class: AbstractCSVWriter
Close this CSV writer.

Specified by:
close in class AbstractCSVWriter
Throws:
IOException

toReader

public AbstractCSVReader toReader()
Create a CSV reader from the records written to this builder and reset it.

See Also:
reset()

reset

public void reset()
Reset this builder.



Copyright © 2011. All Rights Reserved.