org.skife.csv
Interface CSVWriter

All Known Implementing Classes:
SimpleWriter

public interface CSVWriter

Interface for systems that really like interfaces

See Also:
SimpleWriter

Method Summary
 void append(java.lang.Object[] fields)
          Write a row to the CSV file
 void rawLine(java.lang.String line)
          Append a string as a raw line, without any processing
 void setAutoFlush(boolean autoFlush)
          Flush after each line? Default is false
 void setNewLine(char c)
          Defaults to the system dependent newline
 void setNewLine(char[] c)
          Defaults to the system dependent newline
 void setNewLine(java.lang.String newline)
          Defaults to the system dependent newline
 void setSeperator(char seperator)
          Specify the character to use to seperate fields, defaults to a comma
 

Method Detail

append

public void append(java.lang.Object[] fields)
            throws java.io.IOException
Write a row to the CSV file

Throws:
java.io.IOException

setSeperator

public void setSeperator(char seperator)
Specify the character to use to seperate fields, defaults to a comma


setAutoFlush

public void setAutoFlush(boolean autoFlush)
Flush after each line? Default is false


setNewLine

public void setNewLine(char c)
Defaults to the system dependent newline


setNewLine

public void setNewLine(char[] c)
Defaults to the system dependent newline


setNewLine

public void setNewLine(java.lang.String newline)
Defaults to the system dependent newline


rawLine

public void rawLine(java.lang.String line)
             throws java.io.IOException
Append a string as a raw line, without any processing

Useful for comments, etc

Throws:
java.io.IOException