com.partnersoft.formats.csv
Class CsvFileBuilder

java.lang.Object
  extended by com.partnersoft.formats.csv.CsvFileBuilder

public class CsvFileBuilder
extends java.lang.Object

A fast builder for text csv files. Takes care of formatting issues like embedded commas in values.

Copyright 2001-2008 Partner Software, Inc.

Version:
$Id: CsvFileBuilder.java 2328 2010-01-06 15:38:22Z paul $
Author:
Paul Reavis

Constructor Summary
CsvFileBuilder(java.io.File destination, java.util.List<java.lang.String> fieldNames)
           
CsvFileBuilder(java.io.File destination, java.util.List<java.lang.String> fieldNames, boolean append)
           
CsvFileBuilder(VfsFile destination, java.util.List<java.lang.String> fieldNames)
           
CsvFileBuilder(VfsFile destination, java.util.List<java.lang.String> fieldNames, boolean append)
           
CsvFileBuilder(VfsFile destination, java.lang.String... fieldNames)
           
 
Method Summary
 void close()
           
 void write(java.util.List fieldValues)
           
 void write(Naming fieldValues)
           
 void write(java.lang.Object... fieldValues)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CsvFileBuilder

public CsvFileBuilder(java.io.File destination,
                      java.util.List<java.lang.String> fieldNames)
               throws java.io.IOException
Throws:
java.io.IOException

CsvFileBuilder

public CsvFileBuilder(java.io.File destination,
                      java.util.List<java.lang.String> fieldNames,
                      boolean append)
               throws java.io.IOException
Throws:
java.io.IOException

CsvFileBuilder

public CsvFileBuilder(VfsFile destination,
                      java.util.List<java.lang.String> fieldNames)
               throws java.io.IOException
Throws:
java.io.IOException

CsvFileBuilder

public CsvFileBuilder(VfsFile destination,
                      java.util.List<java.lang.String> fieldNames,
                      boolean append)
               throws java.io.IOException
Throws:
java.io.IOException

CsvFileBuilder

public CsvFileBuilder(VfsFile destination,
                      java.lang.String... fieldNames)
               throws java.io.IOException
Throws:
java.io.IOException
Method Detail

write

public void write(Naming fieldValues)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(java.util.List fieldValues)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(java.lang.Object... fieldValues)
           throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException