eos.io.printer
Class CSVPrintWriter

Object
  extended by eos.io.printer.CSVPrintWriter

public class CSVPrintWriter
extends Object

A print writer to write output to a CSV file

Author:
zhihongx

Constructor Summary
CSVPrintWriter(String fileName)
          Create a new CSVPrinter
 
Method Summary
 void cleanup()
          Clean up the print writer
 String getFileName()
          Return the name of the output file
 void print(Object arg)
          Print arg
 void printDelimiter()
          Print a delimiter
 void println(Object... args)
          Print args separated by comma, followed by a new line character
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVPrintWriter

public CSVPrintWriter(String fileName)
Create a new CSVPrinter

Parameters:
fileName - name of the output file
Method Detail

getFileName

public String getFileName()
Return the name of the output file

Returns:
the name of the output file

println

public void println(Object... args)
Print args separated by comma, followed by a new line character

Parameters:
args - arguments to be printed

print

public void print(Object arg)
Print arg

Parameters:
arg - argument to be printed

printDelimiter

public void printDelimiter()
Print a delimiter


cleanup

public void cleanup()
Clean up the print writer